a warning related libcmt.lib

a warning related libcmt.lib

I am using VC++ 2010 and Intel C++ Compiler for a project, and I got a warning:

LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

Has anybody had similar experience before? What caused this problem? How to fix it? I am new to Intel C++ Compiler.


Thanks in advance.



3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

A typical cause of this, which you should see in a web search, is that a single /libs option is not used consistently.  Older equivalent spellings are /MT, /MD, ....  The defaults should be consistent between VC++ and ICL, but ifort has different defaults.

If the project is usin /MD, and it links a lib that is built with /MT, it could cause this issue.

do you get the same issue with VC?


Leave a Comment

Please sign in to add a comment. Not a member? Join today