LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library

简介:

这个错误是在链接的时间与默认的一个lib冲突,需要在编译的时间加入参数,如来这个lib

project--setting--link category=input 中ingore libraries 加入libcmt

 

或者在project_option 中加入参数/nodefaultlib:"libcmt"

 

例如其中一个项目的参数原来为advapi32.lib ws2_32.lib oci.lib dbci_ora.lib utility.lib log4cpp.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/study.pdb"            /debug /machine:I386 /out:"Debug/study.exe" /pdbtype:sept

 

修改之后为

advapi32.lib ws2_32.lib oci.lib dbci_ora.lib utility.lib log4cpp.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/study.pdb"   /nodefaultlib:"libcmt" /debug /machine:I386 /out:"Debug/study.exe" /pdbtype:sept

 

/////////////////////

编译时出现以下错误 
LINK   :   warning   LNK4075:   ignoring   '/EDITANDCONTINUE '   due   to   '/OPT:ICF '   specification 
errors   in   directory   f:\vss\00.work\00.test\tiffprinter\src\uni 
LINK   :   error   LNK1218:   warning   treated   as   error;   no   output   file   generated 
解决办法是   工程设置-> 设定-> link-> link   general里边选中Link   incrementally


本文转自茄子_2008博客园博客,原文链接:http://www.cnblogs.com/xd502djj/archive/2010/10/11/1848119.html,如需转载请自行联系原作者。



目录
相关文章
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
|
开发工具 git
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
101 0
|
Shell
Detected problems with app native libraries (please consult log for detail): lib.so: text relocation
Detected problems with app native libraries (please consult log for detail): lib.so: text relocation
116 0
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
symbol lookup error: /home/quantum6/build_libs/lib/libreadline.so.7: undefined symbol: UP
97 0
解决 lupdate warning: no TS files specified.
解决 lupdate warning: no TS files specified.
|
应用服务中间件 Linux nginx
./configure: error: C compiler cc is not found
./configure: error: C compiler cc is not found
651 0
configure: error: readline library not found/libreadline.so: undefined reference to tputs
configure: error: readline library not found/libreadline.so: undefined reference to tputs
320 0
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `make` in your path; please make sure that you have t
成功解决ERROR: Unable to find the development tool `make` in your path; please make sure that you have t
成功解决ERROR: Unable to find the development tool `make` in your path; please make sure that you have t
|
人工智能 大数据
Transaction Check Error:file /usr/libexec/getconf/default conflicts between attempted installs of gcc-6.4.1-1.fc25.i686 and gcc-6.4.1-1.fc25.x86_64
欢迎关注大数据和人工智能技术文章发布的微信公众号:清研学堂,在这里你可以学到夜白(作者笔名)精心整理的笔记,让我们每天进步一点点,让优秀成为一种习惯! 今天在我的ubuntu系统上使用yum来安装软件时出错了错误:Transaction Check Error:file /usr/libexec/...
1418 0