- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite