- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
![](/skins/images/98E68944C1FF703B8AC50091329B92AF/responsive_peak/images/icon_anonymous_message.png)
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