Discussion:
How we can remove warning LNK4098
(too old to reply)
Jomy K D
2005-03-11 17:27:03 UTC
Permalink
How we can remove this warning . I am getting this warning , everytime when
i am compiling


LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
Dave
2005-03-11 17:39:13 UTC
Permalink
maybe try the /nodefaultlib switch??
Post by Jomy K D
How we can remove this warning . I am getting this warning , everytime when
i am compiling
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
Joseph M. Newcomer
2005-03-11 19:01:50 UTC
Permalink
Check your settings and your list of library loads. It sounds like you've hand-edited your
linker parameters to cause this.
joe
Post by Jomy K D
How we can remove this warning . I am getting this warning , everytime when
i am compiling
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
Joseph M. Newcomer [MVP]
email: ***@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
thatsalok
2005-03-12 04:46:49 UTC
Permalink
Little Hack
add this line in your Stdafx.h

if you want to disable warning LNK4098
#pragma warning( disable : 4098)

or if you want to use /NODEFAULTLIB:library flag

#pragma comment(linker, " /NODEFAULTLIB:[your library name which causing
proble]")



--

With Regards
Alok Gupta
Visit me at http://alok.bizhat.com

"I Believe this will Help"
Post by Jomy K D
How we can remove this warning . I am getting this warning , everytime when
i am compiling
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
Continue reading on narkive:
Loading...