排查错误:undefined reference to `libmsvcrt_a_iname'

本文详细介绍了在使用mingw编译过程中遇到的undefined reference to `libmsvcrt_a_iname'错误的解决过程。问题源于mingw编译时错误地引用了VS的stdio.h文件。虽然使用VS编译无误,但在mingw环境下,由于同时使用了pthread库,导致需要mingw编译。目前尚未找到避免引用VS头文件的方法,期待对此有兴趣的读者进行研究并提供解决方案。
摘要由CSDN通过智能技术生成

在移植Cyrus sasl(cyrus-sasl-2.1.23)库时碰到如下问题(使用mingw编译):

fu000001.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname'
fu000004.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname'
fu000006.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname'
fu000008.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname'
nmth000000.o:(.idata$4+0x0): undefined reference to `_nm___iob'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [debug\libsasl.dll] Error 1
mingw32-make[1]: *** [debug] Error 2
mingw32-make: *** [sub-lib-make_default-ordered] Error 2
The process "E:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值