Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

warning LNK4098

sarathy628
Beginner
996 Views
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?
0 Kudos
3 Replies
evankw21
Beginner
996 Views
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?
0 Kudos
Steven_L_Intel1
Employee
996 Views
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.
0 Kudos
Reply