Yet Another LNK4098
Posted on 2003-10-29
I know it's a common question and typically an easy answer, but I still cannot solve it. Perhaps it is something special or I missed it.
Compiling in Release Mode
Project has two separate DLLs and a LIB, in addition to the main project. From what I can see, only the /MD option is used, never /MDd. The Code Generation uses only Multithreaded DLLs (for all projects). I've even tried putting MSVCRTD (and MFC42D and MFCS42D) in the ignore libraries option input in the Link tab. I still get:
defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
defaultlib 'mfc42d.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
defaultlib 'mfcs42d.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
The Dependency Walker shows the app using both msvcrt.dll and msvcrtd.dll, and MFC42.DLL and MFC42D.DLL. I think I've tried just about every combination of options to eliminate this error (rebuilding all each time), and no dice.