linking error: library conflict
-
i received this linking error: LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library does anyone knwo hwo to resolve this? thanks in advance
I find that one thing that can cause this message is the following (Im using VC++ 5.0): When you create you Win32 Appwizard application, you are asked whether you you wish to use MFC as a shared DLL or as a static library. When you create a ".lib" type project you have 3 options... Using MFC in a static library Using MFC in a shared DLL Not using MFC The ".lib" projects which your Win32 application links in should (in normal situations) be using MFC in the same way as your Win32 app. For example, I built a ".lib" which used some MFC calls, and I mistakenly selected "Not using MFC" when I created the project, and it generated exactly the same message as you quote above. Dave Carkeet, Santiago, Chile