- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page