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

CVF linker warning: should I be worried?

anthonyrichards
New Contributor III
236 Views

I use CVF 6.6C. I have just added a dialog running in a seperate thread to anapplication that built and ran fine before. I specify use threaded/multithreaded libraries. The modified application compiles + links OK except for the following linker warning:

LINK : warning LNK4098: defaultlib "libc.lib" conflicts with use of other libs; use /NODEFAULTLIB:library

Should I be concerned?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
236 Views
Yes, you should. It indicates that you are linking with an object or library that was built specifying the single-threaded libraries. This may or may not cause run-time problems. Maybe all you need to do is a full rebuild.
0 Kudos
anthonyrichards
New Contributor III
236 Views
Thank you Steve. Included in my project is an .OBJ file, 
containing my WinMain and a function that calls my Fortran
functions+routines, that was compiled using Visual C++.
It had been compiled with the code generation option set
to use single-threaded run time libraries, which was fine
for my application until I added a new thread to it. I
recompiled the C++ OBJ, this time selecting to use multithreaded
run time libraries, replaced the old .OBJ with it in my
project and relinked and the warning went away, to my reflief.
I tend to forget that selecting multithreading libraries
starts at the compile stage, rather than at the linking stage.
0 Kudos
Reply