Discussion:
warning LNK4098: defaultlib "mfc42.lib"
(too old to reply)
jomykd
2005-03-16 08:53:23 UTC
Permalink
While compliling I am getting the following warnings

Linking...
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use o
other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use o
other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use o
other libs; use /NODEFAULTLIB:library

Please help me to solve the problem

Jomy K D
***@yahoo.co.i


-
jomyk
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------
Frank Hickman [MVP]
2005-03-16 16:02:28 UTC
Permalink
Post by jomykd
While compliling I am getting the following warnings
Linking...
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
Please help me to solve the problem
Jomy K D
This seems to be happening quite frequently lately. Your problem is you are
linking to two different versions of the MFC dlls and CRT dlls. This is
usually because you are linking to a DLL/Static LIB project that was created
using a different threading model or perhaps your mixing release/debug build
files in your project. The way to fix this is to ensure that the projects
your linking in use the same threading model (single-threaded or
multi-threaded) in the project settings on the C/C++ tab under
Code-generation (VC6), .Net has a different format but the wording is the
same.
--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the ***@m_ with @ to reply.
Eric Liu
2005-05-31 02:52:09 UTC
Permalink
There is something wrong with your project configuration. Try to study the
.dsp file to find out if the configuration is exactly what you desire. If
not, correct the .dsp file.
Post by jomykd
While compliling I am getting the following warnings
Linking...
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
Please help me to solve the problem
Jomy K D
--
jomykd
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
Loading...