专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > QT开发

qt+mingw编译出错,提示undefined reference to `@*'解决思路

发布时间:2010-05-30 21:34:22 文章来源:www.iduyao.cn 采编人员:星星草
qt+mingw编译出错,提示undefined reference to `**@**'
D:TestBiddingsrc/soap/stdsoap2.cpp:4844: undefined reference to `setsockopt@20'
D:TestBidding

src/soap/stdsoap2.cpp:4845: undefined reference to `WSAGetLastError@0'
D:TestBiddingsrc/soap/stdsoap2.cpp:4854: 

undefined reference to `ioctlsocket@12'
D:TestBiddingsrc/soap/stdsoap2.cpp:4856: undefined reference to 

`ioctlsocket@12'
D:TestBiddingsrc/soap/stdsoap2.cpp:4859: undefined reference to `WSAGetLastError@0'
./objs

stdsoap2.o: In function `soap_cleanup':
D:TestBiddingsrc/soap/stdsoap2.cpp:4923: undefined reference to 

`WSACleanup@0'
./objsstdsoap2.o: In function `soap_send_fault':
D:TestBiddingsrc/soap/stdsoap2.cpp:15320: 

undefined reference to `recv@16'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [binBiddingAssistant.exe] 

Error 1
mingw32-make: *** [release] Error 2
The process "E:Qtmingwbinmingw32-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

------解决方案--------------------
Ws2_32.lib
添加这个库文件到链接
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: