问题:使用Qtcreator编译包含如winsock2.h、ws2tcpip.h这些windows头文件时, 会提示undefined reference to 'getaddrinfo@16'错误, 解决方案:一般是没有连接到库的问题,在pro文件内 加入 LIBS += -lws2_32
undefined reference to `gai_error' /home/mark/dev/app/usr/lib/libnanomsg.a(dns.o): In function `nn_dns_shutdown': /home/mark/dev/static/nanomsg_origin/src/transports/utils/dns_getaddrinfo_a.inc:169: undefined reference to `gai_cancel' collect2: error: ld returned 1 exit status make...
EEUlyR8addrinfoE_EEyS9_S9_iiibSC_T_[_ZN7httplib6detail13create_socketIZNS0_20create_client_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_iibSt8functionIFvyEExxxxxxS9_RNS_5ErrorEEUlyR8addrinfoE_EEyS9_S9_iiibSC_T_]+0x328): undefined reference to__imp_getaddrinfo'...
遇到的问题 如图所示,在编译httplib时,出现如下报错。 undefined reference to `__imp_getnameinfo’ undefined reference to `__imp_getaddrinfo’ undefined reference to `__imp_WSASocketW’ undefined reference to ... 查看原文 MingW/codeblocks下 WSAStartup@8报错的解决办法 ...
阿里云为您提供专业及时的报错undefined reference的相关问题及解决方案,解决您最关心的报错undefined reference内容,并提供7x24小时售后支持,点击官网了解更多内容。
coreutils/lib.a(sync.o): In function `sync_main': sync.c:(.text.sync_main+0x6c): undefined reference to `syncfs' collect2: ld returned 1 exit status Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS.
(.text+0xb2): undefined reference to `__builtin_ia32_pause' ld: ../lib/.libs/libcurl.a(libcurl_la-easy.o): in function `curl_easy_init': easy.c:(.text+0x1138): undefined reference to `__builtin_ia32_pause' ld: ../lib/.libs/libcurl.a(libcurl_la-easy.o): in function `curl...
[snip] CMakeFiles\socket_core.dir/objects.a(inet.c.obj):inet.c:(.text+0xc3a): undefined reference to `getaddrinfo' CMakeFiles\socket_core.dir/objects.a(inet.c.obj):inet.c:(.text+0xc5b): undefined reference to `freeaddrinfo' CMakeFiles\socket_core.dir/objects.a(inet.c.obj):ine...
(libcurl_la-openssl.o): in function ossl_connect_step2': /home/conan/workspace/prod-v1/bsr/97928/dcddb/.conan/data/libcurl/8.10.1/_/_/build/eb62b0453b264b36d119eaa1d1d001a2531663d5/src/lib/vtls/openssl.c:4304: undefined reference to SSL_get0_group_name' collect2: error: ld ...
undefined reference to `getaddrinfo' src/modbus-tcp.c:615: undefined reference to `freeaddrinfo' src/modbus-tcp.c:615: undefined reference to `freeaddrinfo' collect2.exe: error: ld returned 1 exit status make[2]: *** [libmodbus.la] Error 1 make[1]: *** [all-recursive] Error 1 ...