C 问题 error: [-Werror,-Wint-to-pointer-cast] 10C

error: cast to 'unsigned char *' from smaller integer type 'int' [-Werror,-Wint-to-pointer-cast]

3个回答

是你把int型的变量强行作为指针使用了,未看到你的代码无法给出修改方案

整整变量当成指针去使用了!!!你应该把错误代码发出来,方便看

就是指针没定义,或者定义错了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
报错cast from pointer to integer of different size

求助各位大佬: unsigned int SET_PTR(char *p, void *ptr){ return (*(unsigned int *)(p) = (unsigned int)(ptr)); } 这段代码为什么报错:cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 应该怎么改?

急!求大神帮忙cast from pointer to integer

我们的作业要implement 一个动态内存分配器,这一行code卡住了 #define SET_PTR(p, ptr) (*(unsigned int *)(p) = (unsigned int)(ptr)) _说我cast from pointer to integer of different size [-Werror=pointer-to-int-cast] 求大神帮忙解答!

编译PX4时出现下面错误怎么办error: non-constant condition for static assertion

在Ubuntu16.04版本下,编译PX4时,总是出现下面的情况,不知道是什么原因,有哪位大神帮忙解答吗? u@ubuntu:~/src/Firmware$ make px4_fmu-v2_default -- PX4 config file: /home/hanlu/src/Firmware/boards/px4/fmu-v2/default.cmake -- PX4 config: px4_fmu-v2_default -- PX4 platform: nuttx -- PX4 lockstep: disabled -- PX4 version: v1.9.0-216-gbef7a9b -- cmake build type: MinSizeRel -- The CXX compiler identification is GNU 4.9.3 -- The C compiler identification is GNU 4.9.3 -- The ASM compiler identification is GNU -- Found assembler: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/Jinja2-2.7.3-py2.7.egg/jinja2 -- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-5-g54ac147 -- Building and including px4_io-v2_default -- ROMFS: px4fmu_common -- ROMFS: Adding rc.board_defaults -- ROMFS: Adding rc.board_sensors -- Configuring done -- Generating done -- Build files have been written to: /home/hanlu/src/Firmware/build/px4_fmu-v2_default [1/690] git submodule platforms/nuttx/NuttX/nuttx [4/690] git submodule platforms/nuttx/NuttX/apps [5/690] git submodule src/lib/ecl [10/690] git submodule src/drivers/gps/devices [16/690] git submodule mavlink/include/mavlink/v2.0 [24/690] Performing configure step for 'px4io_firmware' -- PX4 config file: /home/hanlu/src/Firmware/boards/px4/io-v2/default.cmake -- PX4 config: px4_io-v2_default -- PX4 platform: nuttx -- PX4 lockstep: disabled -- PX4 version: v1.9.0-216-gbef7a9b -- cmake build type: MinSizeRel -- The CXX compiler identification is GNU 4.9.3 -- The C compiler identification is GNU 4.9.3 -- The ASM compiler identification is GNU -- Found assembler: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc -- Check for working CXX compiler using: Ninja -- Check for working CXX compiler using: Ninja -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/Jinja2-2.7.3-py2.7.egg/jinja2 -- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-5-g54ac147 -- Configuring done -- Generating done -- Build files have been written to: /home/hanlu/src/Firmware/build/px4_fmu-v2_default/external/Build/px4io_firmware [25/690] Performing build step for 'px4io_firmware' [1/200] git submodule platforms/nuttx/NuttX/nuttx [5/200] git submodule platforms/nuttx/NuttX/apps [39/200] Building CXX object src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj FAILED: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4_IO_V2 -D__CUSTOM_FILE_IO__ -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -isystem ../../../../../platforms/nuttx/NuttX/include/cxx -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -I../../../../../boards/px4/io-v2/src -I. -Isrc -Isrc/lib -Isrc/modules -I../../../../../src -I../../../../../src/include -I../../../../../src/lib -I../../../../../src/lib/DriverFramework/framework/include -I../../../../../src/lib/matrix -I../../../../../src/modules -I../../../../../src/platforms -I../../../../../src/platforms/common -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -mcpu=cortex-m3 -mthumb -Os -DNDEBUG -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -D__STDC_VERSION__=199901L -nostdinc++ -std=gnu++11 -MMD -MT src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj -MF src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj.d -o src/platforms/common/CMakeFiles/px4_platform.dir/module.cpp.obj -c ../../../../../src/platforms/common/module.cpp In file included from ../../../../../src/platforms/px4_module.h:44:0, from ../../../../../src/platforms/common/module.cpp:43: ../../../../../src/platforms/px4_atomic.h: In instantiation of 'class px4::atomic<bool>': ../../../../../src/platforms/px4_module.h:421:42: required from here ../../../../../src/platforms/px4_atomic.h:72:2: error: non-constant condition for static assertion static_assert(__atomic_always_lock_free(sizeof(T), 0), "atomic is not lock-free for the given type T"); ^ compilation terminated due to -Wfatal-errors. [39/200] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/gps_inject_data.cpp.obj ninja: build stopped: subcommand failed. [108/690] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_parameter_map.cpp.obj FAILED: cd /home/hanlu/src/Firmware/build/px4_fmu-v2_default/external/Build/px4io_firmware && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /home/hanlu/src/Firmware/build/px4_fmu-v2_default/external/Stamp/px4io_firmware/px4io_firmware-build [108/690] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_parameter_map.cpp.obj ninja: build stopped: subcommand failed. Makefile:193: recipe for target 'px4_fmu-v2_default' failed make: *** [px4_fmu-v2_default] Error 1

安装 tengine异常,求解

请教大神!!! 安装tengine-2.2.0 异常 src/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’: src/event/ngx_event_openssl.c:112:5: error: ‘OPENSSL_config’ is deprecated [-Werror=deprecated-declarations] OPENSSL_config(NULL); ^ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from src/event/ngx_event_openssl.h:15, from src/core/ngx_core.h:85, from src/event/ngx_event_openssl.c:9: /usr/local/include/openssl/conf.h:92:1: note: declared here DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name)) ^ src/event/ngx_event_openssl.c: In function ‘ngx_ssl_rsa512_key_callback’: src/event/ngx_event_openssl.c:753:9: error: ‘RSA_generate_key’ is deprecated [-Werror=deprecated-declarations] key = RSA_generate_key(512, RSA_F4, NULL, NULL); ^ In file included from /usr/local/include/openssl/rsa.h:13:0, from /usr/local/include/openssl/x509.h:31, from /usr/local/include/openssl/ssl.h:50, from src/event/ngx_event_openssl.h:15, from src/core/ngx_core.h:85, from src/event/ngx_event_openssl.c:9: /usr/local/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ src/event/ngx_event_openssl.c: In function ‘ngx_ssl_dhparam’: src/event/ngx_event_openssl.c:943:11: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’ dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); ^ src/event/ngx_event_openssl.c: In function ‘ngx_ssl_handshake’: src/event/ngx_event_openssl.c:1166:31: error: dereferencing pointer to incomplete type ‘SSL {aka struct ssl_st}’ if (c->ssl->connection->s3) { ^ src/event/ngx_event_openssl.c: In function ‘ngx_ssl_connection_error’: src/event/ngx_event_openssl.c:1928:21: error: ‘SSL_R_NO_CIPHERS_PASSED’ undeclared (first use in this function) || n == SSL_R_NO_CIPHERS_PASSED /* 182 */ ^ src/event/ngx_event_openssl.c:1928:21: note: each undeclared identifier is reported only once for each function it appears in src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_cache’: src/event/ngx_event_openssl.c:2122:43: error: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type [-Werror=incompatible-pointer-types] SSL_CTX_sess_set_get_cb(ssl->ctx, ngx_ssl_get_cached_session); ^ In file included from src/event/ngx_event_openssl.h:15:0, from src/core/ngx_core.h:85, from src/event/ngx_event_openssl.c:9: /usr/local/include/openssl/ssl.h:637:6: note: expected ‘SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int, int *) {aka struct ssl_session_st * (*)(struct ssl_st *, const unsigned char *, int, int *)}’ but argument is of type ‘SSL_SESSION * (*)(SSL *, u_char *, int, int *) {aka struct ssl_session_st * (*)(struct ssl_st *, unsigned char *, int, int *)}’ void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx, ^ src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_id_context’: src/event/ngx_event_openssl.c:2144:27: error: storage size of ‘md’ isn’t known EVP_MD_CTX md; ^ src/event/ngx_event_openssl.c:2210:5: error: implicit declaration of function ‘EVP_MD_CTX_cleanup’ [-Werror=implicit-function-declaration] EVP_MD_CTX_cleanup(&md); ^ src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_ticket_key_callback’: src/event/ngx_event_openssl.c:2872:9: error: ‘RAND_pseudo_bytes’ is deprecated [-Werror=deprecated-declarations] RAND_pseudo_bytes(iv, 16); ^ In file included from /usr/local/include/openssl/engine.h:19:0, from src/event/ngx_event_openssl.h:22, from src/core/ngx_core.h:85, from src/event/ngx_event_openssl.c:9: /usr/local/include/openssl/rand.h:47:1: note: declared here DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) ^ cc1: all warnings being treated as errors objs/Makefile:827: recipe for target 'objs/src/event/ngx_event_openssl.o' failed make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1 make[1]: Leaving directory '/home/hvm/桌面/Lib/tengine-tengine-2.2.0' Makefile:15: recipe for target 'install' failed make: *** [install] Error 2

18.04 编译8.1安卓源码报错

我用18.04 编译安卓源码的时候报下面的错误,有人遇到过吗? 1 warning generated. [ 18% 12030/66759] target C++: libaau...es/oboeservice/AAudioClientTracker.cpp FAILED: out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/av/services/audioflinger -I system/media/audio_utils/include -I frameworks/native/include -I system/core/base/include -I ./frameworks/native/media/libaaudio/include/include -I ./frameworks/av/media/libaaudio/include -I ./frameworks/av/media/utils/include -I frameworks/native/include -I ./external/tinyalsa/include -I ./frameworks/av/media/libaaudio/src -I frameworks/av/services/oboeservice -I out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates -I out/target/product/salvator/gen/SHARED_LIBRARIES/libaaudioservice_intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/salvator/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -fno-rtti -Wno-unused-parameter -Wall -Werror -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.d -o out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o frameworks/av/services/oboeservice/AAudioClientTracker.cpp" clang++.real: error: unable to execute command: Segmentation fault (core dumped) clang++.real: error: clang frontend command failed due to signal (use -v to see invocation) 这个错误 clang++.real: error: unable to execute command: Segmentation fault (core dumped) clang++.real: error: clang frontend command failed due to signal (use -v to see invocation)

编译android代码报错,哇哇哇

编译报错好纠结,网上也查不到什么资料,望大神赐教! Using /home/user002/Amlogic/LocalMobile/common as source for kernel GEN /home/user002/Amlogic/LocalMobile/out/target/product/m201/obj/KERNEL_OBJ/Makefile CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[3]: “include/generated/mach-types.h”是最新的。 CC kernel/bounds.s cc1: 错误: -Werror=maybe-uninitialized:没有选项 -Wmaybe-uninitialized make[3]: *** [kernel/bounds.s] 错误 1 make[2]: *** [prepare0] 错误 2 make[1]: *** [sub-make] 错误 2 make[1]:正在离开目录 `/home/user002/Amlogic/LocalMobile/common' make: *** [out/target/product/m201/obj/KERNEL_OBJ/arch/arm/boot/uImage] 错误 2 root@cncr-eoc:/home/user002/Amlogic/LocalMobile#

这个warning: left-hand operand of comma expression has no effect是怎么回事?

我的C代码为了实现如下公式的运算有如下两行语句,但不知为什么返回了这个警告(GCC9.2.0编译器)。 ![图片说明](https://img-ask.csdn.net/upload/202003/01/1583052560_763498.png) ```c double lAX = sqrt(pow((n*(A.y-camera.y)-m*(A.z-camera.z)),2) + pow((l*(A.z, camera.z)-n*(A.x-camera.x)), 2) + pow((m*(A.x-camera.x)-l*(A.y-camera.y)), 2)); // Only Formula's step I lAX /= sqrt(pow(l, 2) + pow(m, 2) + pow(n, 2)); // Step II ``` 为什么?

Linux下编程遇到的转换错误,要如何修改?

main.cc:118:43: error: invalid conversion from ‘void*’ to ‘_u32* {aka unsigned int*}’ [-fpermissive] cache->addr_list = realloc(cache->addr_list, cache->addr_list_size * sizeof(_u32)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cc: In function ‘void reset_cache_sim(cache_sim*, int, int)’: main.cc:179:42: error: invalid conversion from ‘void*’ to ‘_u8* {aka unsigned char*}’ [-fpermissive] cache->cache_buf = malloc(cache->cache_size); ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cc:189:31: error: invalid conversion from ‘void*’ to ‘cache_item*’ [-fpermissive] cache->caches = malloc(sizeof(struct cache_item) * cache->cache_item_num); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cc: In function ‘void load_trace(cache_sim*, char*)’: main.cc:361:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] do_cache_op(cache, (void*)addr, 1); ^~~~ main.cc:364:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] do_cache_op(cache, (void*)addr, 0); ^~~~ main.cc: At global scope: main.cc:411:55: error: ISO C++ forbids declaration of ‘do_test’ with no type [-fpermissive] static do_test(struct cache_sim* cache, char* filename) ^ main.cc: In function ‘int main(int, char**)’: main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] st_cases[] = {"gcc.trace","gzip.trace","mcf.trace","swim.trace","twolf.trace"}; ^ main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 错误描述是这样的,求大神解答

原码安装libgd-2.2.3编译报错

在./configure是出现 checking for XpmReadFileToXpmImage in -lXpm... no configure: Disabling support for xpm checking whether to support tiff... auto checking for LIBTIFF... no checking for TIFFClientOpen in -ltiff... no configure: Disabling support for tiff checking whether to support webp... auto checking for WebPGetInfo in -lwebp... no configure: Disabling support for webp checking for simple visibility declarations... yes checking whether we are building for a Win32 host... no checking CFLAGS for maximum warnings... -Wall ** Configuration summary for libgd 2.2.3: Support for Zlib: yes Support for PNG library: yes Support for JPEG library: yes Support for WebP library: no Support for TIFF library: no Support for Freetype 2.x library: yes Support for Fontconfig library: no Support for Xpm library: no Support for liq library: no Support for pthreads: yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating tests/test_config.h config.status: creating config/Makefile config.status: creating config/gdlib-config config.status: creating config/gdlib.pc config.status: creating src/config.h config.status: executing depfiles commands config.status: executing libtool commands make时报错 libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/usr/local/zlib/include -I/usr/local/libpng/include -I/usr/local/libpng/include/libpng16 -I/usr/local/freetype/include -I/usr/local/freetype/include/freetype2 -I/usr/local/jpeg8/include -Werror -g -O2 -fvisibility=hidden -Wall -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.o gdft.c:143:15: error: 'font_pattern' defined but not used [-Werror=unused-function] static char * font_pattern(char **fontpath, char *fontpattern) ^ gdft.c:449:12: error: 'useFontConfig' defined but not used [-Werror=unused-function] static int useFontConfig(int flag) ^ cc1: all warnings being treated as errors make[2]: *** [gdft.lo] Error 1 make[2]: Leaving directory `/root/libgd-2.2.3/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/libgd-2.2.3/src' make: *** [all-recursive] Error 1 请问这是什么问题?如何解决呢?

ubuntu16.04安装opencv时,make不通过该怎么办?

cmake已经完成,情况如下: ``` cmake .. -- Detected version of GNU GCC: 54 (504) -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Checking for module 'gstreamer-base-1.0' -- No package 'gstreamer-base-1.0' found -- Checking for module 'gstreamer-video-1.0' -- No package 'gstreamer-video-1.0' found -- Checking for module 'gstreamer-app-1.0' -- No package 'gstreamer-app-1.0' found -- Checking for module 'gstreamer-riff-1.0' -- No package 'gstreamer-riff-1.0' found -- Checking for module 'gstreamer-pbutils-1.0' -- No package 'gstreamer-pbutils-1.0' found -- Checking for module 'gstreamer-base-0.10' -- No package 'gstreamer-base-0.10' found -- Checking for module 'gstreamer-video-0.10' -- No package 'gstreamer-video-0.10' found -- Checking for module 'gstreamer-app-0.10' -- No package 'gstreamer-app-0.10' found -- Checking for module 'gstreamer-riff-0.10' -- No package 'gstreamer-riff-0.10' found -- Checking for module 'gstreamer-pbutils-0.10' -- No package 'gstreamer-pbutils-0.10' found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Checking for module 'libavresample' -- No package 'libavresample' found -- Looking for libavformat/avformat.h -- Looking for libavformat/avformat.h - found -- Looking for ffmpeg/avformat.h -- Looking for ffmpeg/avformat.h - not found -- Checking for module 'libgphoto2' -- No package 'libgphoto2' found -- found IPP (ICV version): 9.0.1 [9.0.1] -- at: /home/quxutao/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx -- CUDA detected: 7.5 -- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30 -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.6" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.4" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.2" (found /home/quxutao/.virtualenvs/cv/bin/python) -- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file -- Caffe: NO -- Protobuf: YES -- Glog: NO -- HDF5: YES -- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags -- Tesseract: NO -- HDF5: YES -- Build libprotobuf from sources: -- The protocol buffer compiler not found -- Tesseract: NO -- -- General configuration for OpenCV 3.1.0 ===================================== -- Version control: unknown -- -- Platform: -- Host: Linux 4.15.0-47-generic x86_64 -- CMake: 3.5.1 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: RELEASE -- -- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/c++ (ver 5.4.0) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/cc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -- Linker flags (Debug): -- Precompiled headers: YES -- Extra dependencies: /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so gtk-3 gdk-3 pangocairo-1.0 pango-1.0 atk-1.0 cairo-gobject cairo gdk_pixbuf-2.0 gio-2.0 gobject-2.0 gthread-2.0 glib-2.0 dc1394 v4l1 v4l2 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so dl m pthread rt cudart nppc nppi npps cufft -L/usr/lib/x86_64-linux-gnu -- 3rdparty dependencies: libwebp IlmImf libprotobuf -- -- OpenCV modules: -- To be built: cudev core cudaarithm flann hdf imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching -- Disabled: world contrib_world -- Disabled by dependency: - -- Unavailable: java python2 python3 viz cvv matlab sfm -- -- GUI: -- QT: NO -- GTK+ 3.x: YES (ver 3.18.9) -- GThread : YES (ver 2.48.2) -- GtkGlExt: NO -- OpenGL support: NO -- VTK support: NO -- -- Media I/O: -- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) -- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver ) -- WEBP: build (ver 0.3.1) -- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54) -- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.6) -- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- GDAL: NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: YES (ver 2.2.4) -- FFMPEG: YES -- codec: YES (ver 56.60.100) -- format: YES (ver 56.40.101) -- util: YES (ver 54.31.100) -- swscale: YES (ver 3.1.101) -- resample: NO -- gentoo-style: YES -- GStreamer: NO -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: Using libv4l1 (ver 1.10.0) / libv4l2 (ver 1.10.0) -- XIMEA: NO -- Xine: NO -- gPhoto2: NO -- -- Parallel framework: pthreads -- -- Other third-party libraries: -- Use IPP: 9.0.1 [9.0.1] -- at: /home/quxutao/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx -- Use IPP Async: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Eigen: NO -- Use Cuda: YES (ver 7.5) -- Use OpenCL: YES -- Use custom HAL: NO -- -- NVIDIA CUDA -- Use CUFFT: YES -- Use CUBLAS: NO -- USE NVCUVID: NO -- NVIDIA GPU arch: 20 21 30 35 -- NVIDIA PTX archs: 30 -- Use fast math: NO -- -- OpenCL: -- Version: dynamic -- Include path: /home/quxutao/opencv-3.1.0/3rdparty/include/opencl/1.2 -- Use AMDFFT: NO -- Use AMDBLAS: NO -- -- Python 2: -- Interpreter: NO -- -- Python 3: -- Interpreter: NO -- -- Python (for build): NO -- -- Java: -- ant: NO -- JNI: NO -- Java wrappers: NO -- Java tests: NO -- -- Matlab: Matlab not found or implicitly disabled -- -- Documentation: -- Doxygen: NO -- PlantUML: NO -- -- Tests and samples: -- Tests: YES -- Performance tests: YES -- C/C++ Examples: YES -- -- Install path: /usr/local -- -- cvconfig.h is in: /home/quxutao/opencv-3.1.0/build -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: /home/quxutao/opencv-3.1.0/build ``` 但是make的时候,就报错: ``` make [ 4%] Built target libwebp [ 4%] Built target IlmImf [ 4%] Built target opencv_cudev [ 4%] Built target opencv_core_pch_dephelp [ 4%] Built target pch_Generate_opencv_core [ 4%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message): Error generating file /home/quxutao/opencv-3.1.0/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o modules/core/CMakeFiles/opencv_core.dir/build.make:399: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1 CMakeFiles/Makefile2:2307: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 ``` 弄了一下午了,没有找到相关的解决办法。我的cuda是7.5,其实不用GPU也可以的,我只是想用KAZE滤波。。。跪求大神帮忙。。。

error: implicit declaration of function `__sync_fetch_and_or'

用codeviz来生成linux内核的函数调用图 首先是编译内核,这里我们的目的是查看函数调用关系,并非安装新内核,所以直接 进行配置编译: make menuconfig make CC=/usr/local/gcc-graph/bin/gcc bzImage make CC=/usr/local/gcc-graph/bin/gcc modules 在进行到make CC=/usr/local/gcc-graph/bin/gcc modules这一步的时候出现如下错误提示: opened dep file drivers/staging/line6/pcm.c.cdepn drivers/staging/line6/pcm.c: In function `line6_pcm_start': drivers/staging/line6/pcm.c:92: error: implicit declaration of function `__sync_fetch_and_or' drivers/staging/line6/pcm.c:137: error: implicit declaration of function `__sync_fetch_and_and' make[3]: *** [drivers/staging/line6/pcm.o] Error 1 make[2]: *** [drivers/staging/line6] Error 2 make[1]: *** [drivers/staging] Error 2 make: *** [drivers] Error 2 这种情况有没有遇到过啊,如何解决的呢,急急急! 谢谢大家!!

golang:使用sqlite3.c的CGO / clang

<div class="post-text" itemprop="text"> <p>I would like to compile to arm on osx. With the following command: GOOS=linux GOARCH=arm CGO_ENABLED=1 go build -o foo main.go</p> <p>But I get: runtime/cgo clang: error: argument unused during compilation: '-mno-thumb'</p> <p>I use this package: <a href="https://github.com/mattn/go-sqlite3" rel="nofollow">https://github.com/mattn/go-sqlite3</a> I tried the hints: <a href="https://github.com/mattn/go-sqlite3/issues/106" rel="nofollow">https://github.com/mattn/go-sqlite3/issues/106</a></p> <p>Thanks for every help :-)</p> </div>

鞍点问题,谢谢,谢谢,谢谢,谢谢

鞍点是该行中最大,该列中最小的一个数,用c语言求解鞍点,谢谢,谢谢,谢谢,谢谢,谢谢

initialization from incompatible pointer type

对应源码位置61行为: 59 // Sysfs definitions for hcsr04 class 60 static struct class_attribute hcsr04_class_attrs[] = { 61 __ATTR(value, S_IRUGO | S_IWUSR, hcsr04_value_read, hcsr04_value_write), 62 __ATTR_NULL, 63 };

同样的代码code::blocks中运行正常,VSCODE中提示collect2.exe: error: ld returned 1 exit statuscollect2.exe: error: ld returned 1 exit status

一段C代码,在code::blocks中运行正常,但在VSCODE中提示C:\Users\ADMINI~1\AppData\Local\Temp\cc3JOmOu.o:test.cpp:(.text+0x93): undefined reference to `gen_Data(void*)' collect2.exe: error: ld returned 1 exit status 代码如下: 头文件: ``` //kpid.h .... typedef struct _Para { ..... } Para; void gen_Data(void *p); ``` .c文件 ``` //kpid.c #include "kpid.h" void gen_Data(void *p) { Para *pa = (Para *)p; ...... } ``` main ``` //main.c #include "kpid.h" int main() { Para p; p.menber1 = 10; //初始化 .... gen_Data(&p) } ``` 1、这段程序在Code::Blocks17.2 中能正常运行,可输出期望结果 2、将struct定义,gen_Data() 函数定义/实现都放到main.c文件中时(代码不变,仅放的位置移动),在vscode中也能正常运行。 3、但如上代码,定义、实现放在单独的.h,.c文件中,在main.c中包含头文件时,运行错误。提示如下。(函数名的拼写是正确的,没错) C:\Users\ADMINI~1\AppData\Local\Temp\cc3JOmOu.o:test.cpp:(.text+0x93): undefined reference to `gen_Data(void*)' collect2.exe: error: ld returned 1 exit status

Mac 使用make编译gtest出现很多错误,如何解决?

## 系统环境 * Mac OS X Catalina 10.15.3 * 终端: zsh ## 编译过程 1. git clone googletest 2. mkdir mybuild && cd mybuild 3. cmake ../ ![成功](https://img-ask.csdn.net/upload/202002/15/1581750491_801128.png) 4. make ![失败](https://img-ask.csdn.net/upload/202002/15/1581750095_487520.png) ![失败](https://img-ask.csdn.net/upload/202002/15/1581750136_768008.png) ## 尝试 1. 按照网上搜到的方法,在.zshrc配置文件中加入 ```alias clang++="clang++ -std=c++11 -stdlib=libc++ -Weverything" ``` 之类的别名,再source .zshrc均无效。 2. 针对很多如下问题,[-Wer error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions] 我自己写了包含C++11的例子,如delete new,然后用clang++或者g++编译,均成功。

Ubuntu14.04编译android5.1.1_24rz源码出错

art/runtime/thread.h:778:28: error: 'union art::Thread::StateAndFlags' has no member named 'as_atomic_int' In file included from art/disassembler/disassembler_arm64.cc:25:0: art/runtime/thread.h: At global scope: art/runtime/thread.h:921:19: error: field 'as_atomic_int' has incomplete type art/runtime/thread.h: In member function 'void art::Thread::AtomicSetFlag(art::ThreadFlag)': art/runtime/thread.h:774:28: error: 'union art::Thread::StateAndFlags' has no member named 'as_atomic_int' art/runtime/thread.h: In member function 'void art::Thread::AtomicClearFlag(art::ThreadFlag)': art/runtime/thread.h:778:28: error: 'union art::Thread::StateAndFlags' has no member named 'as_atomic_int' external/vixl/src/a64/instructions-a64.h: At global scope: external/vixl/src/a64/instructions-a64.h:88:13: error: 'vixl::kFP32PositiveInfinity' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:89:13: error: 'vixl::kFP32NegativeInfinity' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:90:14: error: 'vixl::kFP64PositiveInfinity' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:92:14: error: 'vixl::kFP64NegativeInfinity' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:97:21: error: 'vixl::kFP64SignallingNaN' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:99:20: error: 'vixl::kFP32SignallingNaN' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:102:21: error: 'vixl::kFP64QuietNaN' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:104:20: error: 'vixl::kFP32QuietNaN' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:107:21: error: 'vixl::kFP64DefaultNaN' defined but not used [-Werror=unused-variable] external/vixl/src/a64/instructions-a64.h:109:20: error: 'vixl::kFP32DefaultNaN' defined but not used [-Werror=unused-variable] cc1plus: all warnings being treated as errors make: *** [out/host/linux-x86/obj32/SHARED_LIBRARIES/libart-disassembler_intermediates/disassembler_arm64.o] Error 1 make: *** 正在等待未完成的任务.... make: *** [out/host/linux-x86/obj32/SHARED_LIBRARIES/libart-disassembler_intermediates/disassembler_arm.o] Error 1 #### make failed to build some targets (04:05 (mm:ss)) ####

用msys编译GMP、PBC库是出现错误,求万能的大神帮忙解决!

用msys编译GMP、PBC库是出现如下错误,求万能的大神帮忙解决! ![图片说明](https://img-ask.csdn.net/upload/201512/14/1450093275_306813.jpg) ![图片说明](https://img-ask.csdn.net/upload/201512/15/1450154311_902355.jpg) Config.log如下: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU MP configure 6.1.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure CPPGLAGS=-D_USE_MINGW_ANSI_STDIO=0--enable-static --disable-shared --------- Platform. ## --------- hostname = Mr-Chen uname -m = i686 uname -r = 1.0.17(0.48/3/2) uname -s = MINGW32_NT-6.1 uname -v = 2011-04-24 23:39 /usr/bin/ uname -p = unknown /bin/ uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: . PATH: /usr/local/bin PATH: /mingw/bin PATH: /bin PATH: /d/ActivePerl/site/bin PATH: /d/ActivePerl/bin PATH: /c/Program Files (x86)/NVIDIA Corporation/PhysX/Common PATH: /c/Windows/system32 PATH: /c/Windows PATH: /c/Windows/System32/Wbem PATH: /c/Windows/System32/WindowsPowerShell/v1.0/ PATH: %QUARTUS_ROOTDIR%/bin PATH: /c/Program Files (x86)/Common Files/Ulead Systems/MPEG PATH: /c/Program Files (x86)/Microsoft SQL Server/80/Tools/Binn/ PATH: /d/Latex/CTEX/UserData/miktex/bin PATH: /d/Latex/CTEX/MiKTeX/miktex/bin PATH: /d/Latex/CTEX/CTeX/ctex/bin PATH: /d/Latex/CTEX/CTeX/cct/bin PATH: /d/Latex/CTEX/CTeX/ty/bin PATH: /d/Latex/CTEX/Ghostscript/gs9.05/bin PATH: /d/Latex/CTEX/GSview/gsview PATH: /d/Latex/CTEX/WinEdt PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/ PATH: /c/MinGW/bin/ PATH: /d/ActivePerl/site/bin/ PATH: /d/ActivePerl/bin/ PATH: /c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn/ PATH: /c/Program Files/Microsoft SQL Server/100/Tools/Binn/ PATH: /c/Program Files/Microsoft SQL Server/100/DTS/Binn/ PATH: /d/VS2010/VC/bin/ PATH: /d/MinGw/bin ----------- Core tests. ----------- configure:3055: checking build system type configure:3069: result: sandybridge-pc-mingw32 configure:3089: checking host system type configure:3102: result: sandybridge-pc-mingw32 configure:3139: checking for a BSD-compatible install configure:3207: result: /bin/install -c configure:3218: checking whether build environment is sane configure:3273: result: yes configure:3424: checking for a thread-safe mkdir -p configure:3463: result: /bin/mkdir -p configure:3470: checking for gawk configure:3486: found /bin/gawk configure:3497: result: gawk configure:3508: checking whether make sets $(MAKE) configure:3530: result: yes configure:3559: checking whether make supports nested variables configure:3576: result: yes configure:3705: checking whether to enable maintainer-specific portions of Makefiles configure:3714: result: no User: ABI= CC= CFLAGS=(unset) CPPFLAGS=(unset) MPN_PATH= GMP: abilist=64 x32 32 cclist=gcc icc cc configure:5749: gcc 2>&1 | grep xlc >/dev/null configure:5752: $? = 1 configure:5806: checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64 Test compile: configure:5820: gcc -O2 -pedantic -fomit-frame-pointer -m64 conftest.c >&5 conftest.c:1:0: sorry, unimplemented: 64-bit mode not compiled in configure:5823: $? = 1 failed program was: int main () { return 0; } configure:6909: result: no configure:5727: cc -c conftest.c >&5 configure:5730: $? = 0 configure:5733: checking whether cc is gcc configure:5735: result: yes configure:5749: cc 2>&1 | grep xlc >/dev/null configure:5752: $? = 1 configure:5806: checking compiler cc -O2 -pedantic -fomit-frame-pointer -m64 Test compile: configure:5820: cc -O2 -pedantic -fomit-frame-pointer -m64 conftest.c >&5 conftest.c:1:0: sorry, unimplemented: 64-bit mode not compiled in configure:5823: $? = 1 failed program was: int main () { return 0; } configure:6909: result: no configure:5749: gcc 2>&1 | grep xlc >/dev/null configure:5752: $? = 1 configure:5806: checking compiler gcc -O2 -pedantic -fomit-frame-pointer -mx32 Test compile: configure:5820: gcc -O2 -pedantic -fomit-frame-pointer -mx32 conftest.c >&5 cc1.exe: error: unrecognized command line option '-mx32' configure:5823: $? = 1 failed program was: int main () { return 0; } configure:6909: result: no configure:5727: cc -c conftest.c >&5 configure:5730: $? = 0 configure:5733: checking whether cc is gcc configure:5735: result: yes configure:5749: cc 2>&1 | grep xlc >/dev/null configure:5752: $? = 1 configure:5806: checking compiler cc -O2 -pedantic -fomit-frame-pointer -mx32 Test compile: configure:5820: cc -O2 -pedantic -fomit-frame-pointer -mx32 conftest.c >&5 cc1.exe: error: unrecognized command line option '-mx32' configure:5823: $? = 1 failed program was: int main () { return 0; } configure:6909: result: no configure:5749: gcc 2>&1 | grep xlc >/dev/null configure:5752: $? = 1 configure:5806: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer Test compile: configure:5820: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:5823: $? = 0 configure:5828: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 5829: ./a.out: No such file or directory ./configure: line 5829: ./b.out: No such file or directory configure:5831: $? = 0 Test compile: function pointer return configure:5874: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:5877: $? = 0 configure:5882: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 5883: ./a.out: No such file or directory ./configure: line 5883: ./b.out: No such file or directory configure:5885: $? = 0 Test compile: cmov instruction configure:5930: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:5933: $? = 0 configure:5938: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 5939: ./a.out: No such file or directory ./configure: line 5939: ./b.out: No such file or directory configure:5941: $? = 0 Test compile: double -> ulong conversion configure:5987: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:5990: $? = 0 configure:5995: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 5996: ./a.out: No such file or directory ./configure: line 5996: ./b.out: No such file or directory configure:5998: $? = 0 Test compile: double negation configure:6042: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6045: $? = 0 configure:6050: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6051: ./a.out: No such file or directory ./configure: line 6051: ./b.out: No such file or directory configure:6053: $? = 0 Test compile: double -> float conversion configure:6098: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6101: $? = 0 configure:6106: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6107: ./a.out: No such file or directory ./configure: line 6107: ./b.out: No such file or directory configure:6109: $? = 0 Test compile: gnupro alpha ev6 char spilling configure:6183: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6186: $? = 0 configure:6191: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6192: ./a.out: No such file or directory ./configure: line 6192: ./b.out: No such file or directory configure:6194: $? = 0 Test compile: __builtin_alloca availability configure:6234: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../libmingw32.a(main.o): In function main': C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference toWinMain@16' collect2: ld returned 1 exit status configure:6237: $? = 1 failed program was: int k; int foo () { __builtin_alloca (k); } Test compile: abs int -> double conversion configure:6358: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6361: $? = 0 configure:6366: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6367: ./a.out: No such file or directory ./configure: line 6367: ./b.out: No such file or directory configure:6369: $? = 0 Test compile: long long reliability test 1 configure:6423: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 conftest.c:6:23: warning: ISO C90 does not support 'long long' [-Wlong-long] configure:6426: $? = 0 configure:6431: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6432: ./a.out: No such file or directory ./configure: line 6432: ./b.out: No such file or directory configure:6434: $? = 0 Test compile: long long reliability test 2 configure:6484: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 conftest.c: In function 'f': conftest.c:7:26: warning: ISO C90 does not support 'long long' [-Wlong-long] configure:6487: $? = 0 configure:6492: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6493: ./a.out: No such file or directory ./configure: line 6493: ./b.out: No such file or directory configure:6495: $? = 0 Test compile: freebsd hacked gcc configure:6545: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6548: $? = 0 configure:6553: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6554: ./a.out: No such file or directory ./configure: line 6554: ./b.out: No such file or directory configure:6556: $? = 0 Test compile: mpn_lshift_com optimization configure:6644: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6647: $? = 0 configure:6652: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6653: ./a.out: No such file or directory ./configure: line 6653: ./b.out: No such file or directory configure:6655: $? = 0 Test compile: mpn_lshift_com optimization 2 configure:6752: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 configure:6755: $? = 0 configure:6760: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 6761: ./a.out: No such file or directory ./configure: line 6761: ./b.out: No such file or directory configure:6763: $? = 0 configure:6909: result: yes configure: testlist sizeof-long-4 configure:7084: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer has sizeof(long)==4 configure:7097: gcc -m32 -O2 -pedantic -fomit-frame-pointer -c conftest.c >&5 configure:7100: $? = 0 configure:7105: result: yes configure:7423: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=sandybridge Test compile: configure:7437: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=sandybridge conftest.c >&5 conftest.c:1:0: error: bad value (sandybridge) for -mtune= switch configure:7440: $? = 1 failed program was: int main () { return 0; } configure:8526: result: no configure:7423: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 Test compile: configure:7437: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7440: $? = 0 configure:7445: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7446: ./a.out: No such file or directory ./configure: line 7446: ./b.out: No such file or directory configure:7448: $? = 0 Test compile: function pointer return configure:7491: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7494: $? = 0 configure:7499: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7500: ./a.out: No such file or directory ./configure: line 7500: ./b.out: No such file or directory configure:7502: $? = 0 Test compile: cmov instruction configure:7547: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7550: $? = 0 configure:7555: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7556: ./a.out: No such file or directory ./configure: line 7556: ./b.out: No such file or directory configure:7558: $? = 0 Test compile: double -> ulong conversion configure:7604: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7607: $? = 0 configure:7612: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7613: ./a.out: No such file or directory ./configure: line 7613: ./b.out: No such file or directory configure:7615: $? = 0 Test compile: double negation configure:7659: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7662: $? = 0 configure:7667: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7668: ./a.out: No such file or directory ./configure: line 7668: ./b.out: No such file or directory configure:7670: $? = 0 Test compile: double -> float conversion configure:7715: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7718: $? = 0 configure:7723: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7724: ./a.out: No such file or directory ./configure: line 7724: ./b.out: No such file or directory configure:7726: $? = 0 Test compile: gnupro alpha ev6 char spilling configure:7800: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7803: $? = 0 configure:7808: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7809: ./a.out: No such file or directory ./configure: line 7809: ./b.out: No such file or directory configure:7811: $? = 0 Test compile: __builtin_alloca availability configure:7851: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../libmingw32.a(main.o): In function main': C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference toWinMain@16' collect2: ld returned 1 exit status configure:7854: $? = 1 failed program was: int k; int foo () { __builtin_alloca (k); } Test compile: abs int -> double conversion configure:7975: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:7978: $? = 0 configure:7983: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7984: ./a.out: No such file or directory ./configure: line 7984: ./b.out: No such file or directory configure:7986: $? = 0 Test compile: long long reliability test 1 configure:8040: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 conftest.c:6:23: warning: ISO C90 does not support 'long long' [-Wlong-long] configure:8043: $? = 0 configure:8048: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8049: ./a.out: No such file or directory ./configure: line 8049: ./b.out: No such file or directory configure:8051: $? = 0 Test compile: long long reliability test 2 configure:8101: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 conftest.c: In function 'f': conftest.c:7:26: warning: ISO C90 does not support 'long long' [-Wlong-long] configure:8104: $? = 0 configure:8109: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8110: ./a.out: No such file or directory ./configure: line 8110: ./b.out: No such file or directory configure:8112: $? = 0 Test compile: freebsd hacked gcc configure:8162: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:8165: $? = 0 configure:8170: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8171: ./a.out: No such file or directory ./configure: line 8171: ./b.out: No such file or directory configure:8173: $? = 0 Test compile: mpn_lshift_com optimization configure:8261: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:8264: $? = 0 configure:8269: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8270: ./a.out: No such file or directory ./configure: line 8270: ./b.out: No such file or directory configure:8272: $? = 0 Test compile: mpn_lshift_com optimization 2 configure:8369: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 conftest.c >&5 configure:8372: $? = 0 configure:8377: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8378: ./a.out: No such file or directory ./configure: line 8378: ./b.out: No such file or directory configure:8380: $? = 0 configure:8526: result: yes configure:7423: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=sandybridge Test compile: configure:7437: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=sandybridge conftest.c >&5 conftest.c:1:0: error: bad value (sandybridge) for -march= switch configure:7440: $? = 1 failed program was: int main () { return 0; } configure:8526: result: no configure:7423: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 Test compile: configure:7437: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7440: $? = 0 configure:7445: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7446: ./a.out: No such file or directory ./configure: line 7446: ./b.out: No such file or directory configure:7448: $? = 0 Test compile: function pointer return configure:7491: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7494: $? = 0 configure:7499: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7500: ./a.out: No such file or directory ./configure: line 7500: ./b.out: No such file or directory configure:7502: $? = 0 Test compile: cmov instruction configure:7547: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7550: $? = 0 configure:7555: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7556: ./a.out: No such file or directory ./configure: line 7556: ./b.out: No such file or directory configure:7558: $? = 0 Test compile: double -> ulong conversion configure:7604: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7607: $? = 0 configure:7612: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7613: ./a.out: No such file or directory ./configure: line 7613: ./b.out: No such file or directory configure:7615: $? = 0 Test compile: double negation configure:7659: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7662: $? = 0 configure:7667: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7668: ./a.out: No such file or directory ./configure: line 7668: ./b.out: No such file or directory configure:7670: $? = 0 Test compile: double -> float conversion configure:7715: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7718: $? = 0 configure:7723: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7724: ./a.out: No such file or directory ./configure: line 7724: ./b.out: No such file or directory configure:7726: $? = 0 Test compile: gnupro alpha ev6 char spilling configure:7800: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7803: $? = 0 configure:7808: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7809: ./a.out: No such file or directory ./configure: line 7809: ./b.out: No such file or directory configure:7811: $? = 0 Test compile: __builtin_alloca availability configure:7851: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../libmingw32.a(main.o): In function main': C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference toWinMain@16' collect2: ld returned 1 exit status configure:7854: $? = 1 failed program was: int k; int foo () { __builtin_alloca (k); } Test compile: abs int -> double conversion configure:7975: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:7978: $? = 0 configure:7983: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 7984: ./a.out: No such file or directory ./configure: line 7984: ./b.out: No such file or directory configure:7986: $? = 0 Test compile: long long reliability test 1 configure:8040: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 conftest.c:6:23: warning: ISO C90 does not support 'long long' [-Wlong-long] configure:8043: $? = 0 configure:8048: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8049: ./a.out: No such file or directory ./configure: line 8049: ./b.out: No such file or directory configure:8051: $? = 0 Test compile: long long reliability test 2 configure:8101: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 conftest.c: In function 'f': conftest.c:7:26: warning: ISO C90 does not support 'long long' [-Wlong-long] configure:8104: $? = 0 configure:8109: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8110: ./a.out: No such file or directory ./configure: line 8110: ./b.out: No such file or directory configure:8112: $? = 0 Test compile: freebsd hacked gcc configure:8162: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:8165: $? = 0 configure:8170: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8171: ./a.out: No such file or directory ./configure: line 8171: ./b.out: No such file or directory configure:8173: $? = 0 Test compile: mpn_lshift_com optimization configure:8261: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:8264: $? = 0 configure:8269: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8270: ./a.out: No such file or directory ./configure: line 8270: ./b.out: No such file or directory configure:8272: $? = 0 Test compile: mpn_lshift_com optimization 2 configure:8369: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 conftest.c >&5 configure:8372: $? = 0 configure:8377: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./configure: line 8378: ./a.out: No such file or directory ./configure: line 8378: ./b.out: No such file or directory configure:8380: $? = 0 configure:8526: result: yes configure:7423: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 -mno-cygwin Test compile: configure:7437: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 -mno-cygwin conftest.c >&5 cc1.exe: error: unrecognized command line option '-mno-cygwin' configure:7440: $? = 1 failed program was: int main () { return 0; } configure:8526: result: no configure:8679: checking for gcc configure:8706: result: gcc configure:8935: checking for C compiler version configure:8944: gcc --version >&5 gcc.exe (GCC) 4.6.2 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:8955: $? = 0 configure:8944: gcc -v >&5 Using built-in specs. COLLECT_GCC=c:\MinGW\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.6.2 (GCC) configure:8955: $? = 0 configure:8944: gcc -V >&5 gcc.exe: error: unrecognized option '-V' gcc.exe: fatal error: no input files compilation terminated. configure:8955: $? = 1 configure:8944: gcc -qversion >&5 gcc.exe: error: unrecognized option '-qversion' gcc.exe: fatal error: no input files compilation terminated. configure:8955: $? = 1 configure:8975: checking whether the C compiler works configure:8997: gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7 D:\gmp-6.1.0 conftest.c >&5 c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find D:\gmp-6.1.0: Permission denied collect2: ld returned 1 exit status configure:9001: $? = 1 configure:9039: result: no configure: failed program was: | /* confdefs.h / | #define PACKAGE_NAME "GNU MP" | #define PACKAGE_TARNAME "gmp" | #define PACKAGE_VERSION "6.1.0" | #define PACKAGE_STRING "GNU MP 6.1.0" | #define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html" | #define PACKAGE_URL "http://www.gnu.org/software/gmp/" | #define PACKAGE "gmp" | #define VERSION "6.1.0" | #define WANT_ASSEMBLY 1 | #define WANT_FFT 1 | #define HAVE_HOST_CPU_sandybridge 1 | #define HOST_DOS64 1 | #define HAVE_SPEED_CYCLECOUNTER 2 | #define HAVE_CALLING_CONVENTIONS 1 | / end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:9044: error: in /d/gmp-6.1.0': configure:9046: error: C compiler cannot create executables Seeconfig.log' for more details ---------------- Cache variables. ---------------- ac_cv_build=sandybridge-pc-mingw32 ac_cv_env_ABI_set= ac_cv_env_ABI_value= ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_FOR_BUILD_set= ac_cv_env_CC_FOR_BUILD_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_FOR_BUILD_set= ac_cv_env_CPP_FOR_BUILD_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='D:\gmp-6.1.0' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_M4_set= ac_cv_env_M4_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value= ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=sandybridge-pc-mingw32 ac_cv_path_install='/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes ----------------- Output variables. ----------------- ABI='32' ACLOCAL='${SHELL} /d/gmp-6.1.0/missing aclocal-1.15' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='' AS='' ASMFLAGS='' AUTOCONF='${SHELL} /d/gmp-6.1.0/missing autoconf' AUTOHEADER='${SHELL} /d/gmp-6.1.0/missing autoheader' AUTOMAKE='${SHELL} /d/gmp-6.1.0/missing automake-1.15' AWK='gawk' CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo' CC='gcc' CCAS='' CC_FOR_BUILD='' CFLAGS='-m32 -O2 -pedantic -fomit-frame-pointer -mtune=corei7 -march=corei7' CPP='' CPPFLAGS='' CPP_FOR_BUILD='' CXX='' CXXCPP='' CXXFLAGS='' CYGPATH_W='echo' DEFN_LONG_LONG_LIMB='/* #undef LONG_LONG_LIMB */' DEFS='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' ENABLE_STATIC_FALSE='' ENABLE_STATIC_TRUE='' EXEEXT='' EXEEXT_FOR_BUILD='' FGREP='' GMP_LDFLAGS='' GMP_LIMB_BITS='' GMP_NAIL_BITS='0' GREP='' HAVE_CLOCK_01='' HAVE_CPUTIME_01='' HAVE_GETRUSAGE_01='' HAVE_GETTIMEOFDAY_01='' HAVE_HOST_CPU_FAMILY_power='0' HAVE_HOST_CPU_FAMILY_powerpc='0' HAVE_SIGACTION_01='' HAVE_SIGALTSTACK_01='' HAVE_SIGSTACK_01='' HAVE_STACK_T_01='' HAVE_SYS_RESOURCE_H_01='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='' LDFLAGS='D:\gmp-6.1.0' LEX='' LEXLIB='' LEX_OUTPUT_ROOT='' LIBCURSES='' LIBGMPXX_LDFLAGS='' LIBGMP_DLL='' LIBGMP_LDFLAGS='' LIBM='' LIBM_FOR_BUILD='' LIBOBJS='' LIBREADLINE='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' M4='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /d/gmp-6.1.0/missing makeinfo' MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='gmp' PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html' PACKAGE_NAME='GNU MP' PACKAGE_STRING='GNU MP 6.1.0' PACKAGE_TARNAME='gmp' PACKAGE_URL='http://www.gnu.org/software/gmp/' PACKAGE_VERSION='6.1.0' PATH_SEPARATOR=':' RANLIB='' SED='' SET_MAKE='' SHELL='/bin/sh' SPEED_CYCLECOUNTER_OBJ='pentium.lo' STRIP='' TAL_OBJECT='' TUNE_LIBS='' TUNE_SQR_OBJ='' U_FOR_BUILD='' VERSION='6.1.0' WANT_CXX_FALSE='' WANT_CXX_TRUE='' WITH_READLINE_01='' YACC='' YFLAGS='' ac_ct_AR='' ac_ct_CC='gcc' ac_ct_CXX='' ac_ct_DUMPBIN='' am_EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__isrc='' am__leading_dot='.' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='sandybridge-pc-mingw32' build_alias='' build_cpu='sandybridge' build_os='mingw32' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' gmp_srclinks='' host='sandybridge-pc-mingw32' host_alias='' host_cpu='sandybridge' host_os='mingw32' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /d/gmp-6.1.0/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' mpn_objects='' mpn_objs_in_libgmp='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ----------- confdefs.h. ----------- /* confdefs.h */ #define PACKAGE_NAME "GNU MP" #define PACKAGE_TARNAME "gmp" #define PACKAGE_VERSION "6.1.0" #define PACKAGE_STRING "GNU MP 6.1.0" #define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html" #define PACKAGE_URL "http://www.gnu.org/software/gmp/" #define PACKAGE "gmp" #define VERSION "6.1.0" #define WANT_ASSEMBLY 1 #define WANT_FFT 1 #define HAVE_HOST_CPU_sandybridge 1 #define HOST_DOS64 1 #define HAVE_SPEED_CYCLECOUNTER 2 #define HAVE_CALLING_CONVENTIONS 1 configure: exit 77

Linux搭建Fastdfs文件服务器安装nginx问题

/home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c In file included from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:0: /home/jumper/fastdfs-nginx-module/src//common.c:43:2: error: unknown type name ‘FDFSStorePaths’ FDFSStorePaths store_paths; ^ /home/jumper/fastdfs-nginx-module/src//common.c: In function ‘fdfs_load_groups_store_paths’: /home/jumper/fastdfs-nginx-module/src//common.c:123:35: error: request for member ‘paths’ in something not a structure or union group_store_paths[i].store_paths.paths = \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:123:3: error: implicit declaration of function ‘storage_load_paths_from_conf_file_ex’ [-Werror=implicit-function-declaration] group_store_paths[i].store_paths.paths = \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:125:58: error: request for member ‘count’ in something not a structure or union section_name, false, &group_store_paths[i].store_paths.count, \ ^ /home/jumper/fastdfs-nginx-module/src//common.c: In function ‘fdfs_mod_init’: /home/jumper/fastdfs-nginx-module/src//common.c:338:43: error: request for member ‘count’ in something not a structure or union storage_server_port, g_fdfs_store_paths.count); ^ /home/jumper/fastdfs-nginx-module/src//common.c:339:33: error: request for member ‘count’ in something not a structure or union for (i=0; i<g_fdfs_store_paths.count; i++) ^ /home/jumper/fastdfs-nginx-module/src//common.c:343:23: error: request for member ‘paths’ in something not a structure or union g_fdfs_store_paths.paths[i]); ^ /home/jumper/fastdfs-nginx-module/src//common.c:392:48: error: request for member ‘count’ in something not a structure or union for (i=0; i<group_store_paths[k].store_paths.count; i++) ^ /home/jumper/fastdfs-nginx-module/src//common.c:396:38: error: request for member ‘paths’ in something not a structure or union group_store_paths[k].store_paths.paths[i]); ^ /home/jumper/fastdfs-nginx-module/src//common.c:403:16: error: request for member ‘count’ in something not a structure or union store_paths.count, buff); ^ /home/jumper/fastdfs-nginx-module/src//common.c: In function ‘fdfs_http_request_handler’: /home/jumper/fastdfs-nginx-module/src//common.c:556:2: error: unknown type name ‘FDFSStorePaths’ FDFSStorePaths *pStorePaths; ^ /home/jumper/fastdfs-nginx-module/src//common.c:651:15: error: assignment from incompatible pointer type [-Werror] pStorePaths = &g_fdfs_store_paths; ^ /home/jumper/fastdfs-nginx-module/src//common.c:684:15: error: assignment from incompatible pointer type [-Werror] pStorePaths = &g_fdfs_store_paths; ^ /home/jumper/fastdfs-nginx-module/src//common.c:763:35: error: request for member ‘count’ in something not a structure or union store_path_index >= pStorePaths->count) ^ /home/jumper/fastdfs-nginx-module/src//common.c:769:34: error: request for member ‘count’ in something not a structure or union store_path_index, pStorePaths->count); ^ /home/jumper/fastdfs-nginx-module/src//common.c:808:3: error: implicit declaration of function ‘trunk_file_stat_ex1’ [-Werror=implicit-function-declaration] if ((result=trunk_file_stat_ex1(pStorePaths, store_path_index, \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:868:17: error: request for member ‘paths’ in something not a structure or union pStorePaths->paths[store_path_index], \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:973:2: error: implicit declaration of function ‘fdfs_http_get_file_extension’ [-Werror=implicit-function-declaration] ext_name = fdfs_http_get_file_extension(true_filename, \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:973:11: error: assignment makes pointer from integer without a cast [-Werror] ext_name = fdfs_http_get_file_extension(true_filename, \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:977:2: error: passing argument 3 of ‘fdfs_http_get_content_type_by_extname’ makes pointer from integer without a cast [-Werror] if (fdfs_http_get_content_type_by_extname(&g_http_params, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//common.c:27:0, from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6: /usr/local/include/fastdfs/fdfs_http_shared.h:103:5: note: expected ‘char *’ but argument is of type ‘int’ int fdfs_http_get_content_type_by_extname(FDFSHTTPParams *pParams, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:0: /home/jumper/fastdfs-nginx-module/src//common.c:977:2: error: passing argument 4 of ‘fdfs_http_get_content_type_by_extname’ makes integer from pointer without a cast [-Werror] if (fdfs_http_get_content_type_by_extname(&g_http_params, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//common.c:27:0, from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6: /usr/local/include/fastdfs/fdfs_http_shared.h:103:5: note: expected ‘int’ but argument is of type ‘char *’ int fdfs_http_get_content_type_by_extname(FDFSHTTPParams *pParams, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:0: /home/jumper/fastdfs-nginx-module/src//common.c:977:2: error: too many arguments to function ‘fdfs_http_get_content_type_by_extname’ if (fdfs_http_get_content_type_by_extname(&g_http_params, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//common.c:27:0, from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6: /usr/local/include/fastdfs/fdfs_http_shared.h:103:5: note: declared here int fdfs_http_get_content_type_by_extname(FDFSHTTPParams *pParams, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:0: /home/jumper/fastdfs-nginx-module/src//common.c:1092:3: error: unknown type name ‘ConnectionInfo’ ConnectionInfo storage_server; ^ /home/jumper/fastdfs-nginx-module/src//common.c:1096:24: error: request for member ‘ip_addr’ in something not a structure or union strcpy(storage_server.ip_addr, file_info.source_ip_addr); ^ /home/jumper/fastdfs-nginx-module/src//common.c:1097:17: error: request for member ‘port’ in something not a structure or union storage_server.port = the_storage_port; ^ /home/jumper/fastdfs-nginx-module/src//common.c:1098:17: error: request for member ‘sock’ in something not a structure or union storage_server.sock = -1; ^ /home/jumper/fastdfs-nginx-module/src//common.c:1104:3: error: passing argument 2 of ‘storage_download_file_ex1’ from incompatible pointer type [-Werror] result = storage_download_file_ex1(NULL, \ ^ In file included from /usr/local/include/fastdfs/fdfs_client.h:17:0, from /home/jumper/fastdfs-nginx-module/src//common.c:28, from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6: /usr/local/include/fastdfs/storage_client1.h:274:5: note: expected ‘struct TrackerServerInfo *’ but argument is of type ‘int *’ int storage_download_file_ex1(TrackerServerInfo *pTrackerServer, \ ^ In file included from /home/jumper/fastdfs-nginx-module/src//ngx_http_fastdfs_module.c:6:0: /home/jumper/fastdfs-nginx-module/src//common.c:1133:3: error: implicit declaration of function ‘trunk_get_full_filename_ex’ [-Werror=implicit-function-declaration] trunk_get_full_filename_ex(pStorePaths, &trunkInfo, \ ^ /home/jumper/fastdfs-nginx-module/src//common.c:1143:16: error: request for member ‘paths’ in something not a structure or union pStorePaths->paths[store_path_index], \ ^ cc1: all warnings being treated as errors make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1 make[1]: Leaving directory `/home/jumper/nginx-1.0.11' make: *** [build] Error 2

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

一文带你入门Java Stream流,太强了

两个星期以前,就有读者强烈要求我写一篇 Java Stream 流的文章,我说市面上不是已经有很多了吗,结果你猜他怎么说:“就想看你写的啊!”你看你看,多么苍白的喜欢啊。那就“勉为其难”写一篇吧,嘻嘻。 单从“Stream”这个单词上来看,它似乎和 java.io 包下的 InputStream 和 OutputStream 有些关系。实际上呢,没毛关系。Java 8 新增的 Stream 是为...

立即提问