defaultlib conflicts/unresolved _CrtDbgReport whn mixed mode

  • Thread starter Thread starter Tim Hitchcock
  • Start date Start date
T

Tim Hitchcock

I am trying to convert an MFC DLL to mixed mode. When I followed the
instructions on how to set it up and then compiled it, I got the warning
message "LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs;
use /NODEFAULTLIB:library". When I added "/NODEFAULTLIB:msvcrtd.lib" to the
link additional options, I got the error message "LNK2020: unresolved token
(0A00009C) _CrtDbgReport". I have tried several diferent options for the
"Runtime Library" field of C/C++ / Code Generation in combination or not in
combination with /NODEFAULTLIB, but all of them either result in other
errors or produce the same result. At present I am trying to set up a debug
build. What am I doing wrong?
 
Back
Top