curl-users
mingw QT windows error undefined reference to `_imp__getpeername
Date: Mon, 16 Mar 2015 15:12:27 -0500
Trying to compile a windows qt app which uses libcurl. Compiled libcurl
first and linked the library to my app. It fails on the following error. I
know its part of windows winsock, but not sure what I am missing.
C:\deps\curl-7.32.0\lib\libcurl.a(libcurl_la-connect.o):connect.c:(.text+0x354):
undefined reference to `_imp__getpeername_at_12'
Makefile.Release:358: recipe for target 'release\Opalcoin-Qt.exe' failed
C:\deps\curl-7.32.0\lib\libcurl.a(libcurl_la-connect.o):connect.c:(.text+0xb78):
undefined reference to `_imp__WSAIoctl_at_36'
C:/MinGW/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe:
C:\deps\curl-7.32.0\lib\libcurl.a(libcurl_la-connect.o): bad reloc address
0x20 in section `.eh_frame'
C:/MinGW/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe:
final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Thanks,
Spencer
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-16