warning LNK4098

warning LNK4098

I have a warning when i execute the FORTRAN code which says:

LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
Can you please tell me how to solve this problem?

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Retired 12/31/2016

Quoting - sarathy628
I have a warning when i execute the FORTRAN code which says:

LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
Can you please tell me how to solve this problem?

I am having a similar problem with this error message, but it is being generated by the Fortran linker when I try to compile and link the Debug version of the code. The link in Steve's reply is broken. Is there a replacement link?

You need to make sure that the Fortran and C/C+ projects are using the same run-time library. Nowadays, C++ uses the multithreaded debug DLL libs by default and Intel Fortran uses the multithreaded static debug libraries. Change one or the other to match. This is under Code Generation for C++ and Libraries for Fortran.

Retired 12/31/2016

Leave a Comment

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