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.

 

Cindy

3 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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?

Jennifer

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi