August 18th, 2004, 07:51 AM
#1
Warning about /NODEFAULTLIB:library
Hello,everybody:
I build program,and and show one warning:
Linking...
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
What does the warning mean??
Waht 's effect to program???
Thanks!
August 18th, 2004, 07:55 AM
#2
This may help explain it - at the bottom of the page it talks about what to do if there is a library conflict
http://support.microsoft.com/default...b;EN-US;186907
August 18th, 2004, 08:02 AM
#3
Originally Posted by
JonnoA
Aftering modifying the setting:
--------------------Configuration: Simple Player - Win32 Release--------------------
Linking...
MAIN.OBJ : error LNK2001: unresolved external symbol __beginthread
MAIN.OBJ : error LNK2001: unresolved external symbol __endthread
Release/Simple Player.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
What 's happen??
Thanks!
August 18th, 2004, 08:22 AM
#4
August 18th, 2004, 01:29 PM
#5
Originally Posted by
Cooker
Aftering modifying the setting:
--------------------Configuration: Simple Player - Win32 Release--------------------
Linking...
MAIN.OBJ : error LNK2001: unresolved external symbol __beginthread
MAIN.OBJ : error LNK2001: unresolved external symbol __endthread
Release/Simple Player.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
What 's happen??
Thanks!
Check your settings in the project->settings->general-> using mfc (pick static or shared) change it to one if it is not set and you are using MFC.
August 18th, 2004, 09:45 PM
#6
Originally Posted by
Mick
Check your settings in the project->settings->general-> using mfc (pick static or shared) change it to one if it is not set and you are using MFC.
The whole project is attached.
Could someone help me to check???
Thanks a lot!
Attached Files
August 18th, 2004, 10:16 PM
#7
remove the ignore library: LIBCMT
project->settings->link->input.
October 18th, 2004, 04:07 AM
#8
Re: Warning about /NODEFAULTLIB:library
Originally Posted by
JonnoA
If I do that, I get two errors in link time:
MAIN.OBJ : error LNK2001: unresolved external symbol __beginthread
MAIN.OBJ : error LNK2001: unresolved external symbol __endthread
What shall I do?
Thanks!
Attached Files
Last edited by Cooker; October 18th, 2004 at 04:09 AM .
October 18th, 2004, 10:34 AM
#9
Re: Warning about /NODEFAULTLIB:library
You are mixing CRT's. The debug version of the CRT starts with 'debug' in the IDE
named wise it will contain a d
msvcrt.lib
msvcrtd .lib etc.
Project settings->c++->code generation->[use runtime library]
for you debug build either:
debug multithreaded
debug multithreaded dll
for your release build either:
multithreaded
multithreaded dll
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width