• 4221阅读
  • 1回复

[提问]qt+mingw编译出错,提示undefined reference to `**@**' [复制链接]

上一主题 下一主题
离线albert988
 

只看楼主 倒序阅读 楼主  发表于: 2011-11-22
D:\Test\Bidding\src/soap/stdsoap2.cpp:4844: undefined reference to `setsockopt@20'
D:\Test\Bidding\src/soap/stdsoap2.cpp:4845: undefined reference to `WSAGetLastError@0'
D:\Test\Bidding\src/soap/stdsoap2.cpp:4854: undefined reference to `ioctlsocket@12'
D:\Test\Bidding\src/soap/stdsoap2.cpp:4856: undefined reference to `ioctlsocket@12'
D:\Test\Bidding\src/soap/stdsoap2.cpp:4859: undefined reference to `WSAGetLastError@0'
./objs\stdsoap2.o: In function `soap_cleanup':
D:\Test\Bidding\src/soap/stdsoap2.cpp:4923: undefined reference to `WSACleanup@0'
./objs\stdsoap2.o: In function `soap_send_fault':
D:\Test\Bidding\src/soap/stdsoap2.cpp:15320: undefined reference to `recv@16'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [bin\BiddingAssistant.exe] Error 1
mingw32-make: *** [release] Error 2
The process "E:\Qt\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project BiddingAssistant (target: Desktop)
When executing build step 'Make'

使用qt + vc是能编译通过的,但是使用qtcreator时则提示以上问题。使用的是Qt SDK version 1.1.4
离线dbzhang800

只看该作者 1楼 发表于: 2011-11-22
链上必要的库:

-lWs2_32
快速回复
限100 字节
 
上一个 下一个