Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

a warning related libcmt.lib

Cindy_Z_
Beginner
520 Views

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.

 

Cindy

0 Kudos
2 Replies
TimP
Honored Contributor III
520 Views

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.

0 Kudos
JenniferJ
Moderator
520 Views

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?

Jennifer

0 Kudos
Reply