>---------- Forwarded message ----------
>Date: Sat, 08 Jun 2002 19:13:38 +0200
>From: Martin Kavalar <kavalar@...>
>To: Andrew I. Mutch <amutch@...>
>Subject: Re: Mozilla 1.0 and K-Meleon
>
>Then it does compile, but i get the following warning:
>
>LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
>libs; use /NODEFAULTLIB:library
>
>When running the program it still creates the Profiles directory but
>crashed with an exection before showing me the browser. I can, however
>run the exe and compile it fine against mozilla using my older cvs
>k-meleon source. May be the beta build im using for the dll files are to
>old?
The msvcrtd.dll is the debug equivalent of msvcrt.dll which contains all
the crt stuff. The error you are getting above generally occurs if you are
trying to link libraries build again the debug version with libraries build
against the non debug. These libraries are not compatible and cannot be
linked together into a single executable without problems (mainly
threading). You need to make sure all your libraries are build with one or
the other.
This can be a pain in the arse if you are linking with prebuilt 3rd party
dll's (if you are silly enough to go with a product that doesnt provide
source) as you have no choice but to build your executable to match. The
option to toggle this is under Tools | Settings | C/C++ | Code Generation.
Choose either "Debug Multithreaded DLL" or "Multithreaded DLL". Optionally
the command line is /MDd or /MD.
Hope that was helpful.
Ryan
|