I can not test my application so decided to find out more. This is the situation: I have a third party static library that I like to use it in my MFC application. I created a MFC dialog based application, it built successfully both in debug and release. I was more interested in MFC Single document, therefore I created a MFC SD app and linked the header and library as before then started building.
With the MFC SD app, these is what I got:
In debug mode with RT option set to "Multi-threaded Debug DLL (/MDd)", got some LNK2005 error stuff.
In debug mode with RT option set to "Multi-threaded DLL (/MD)", got couple of warnings only:
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs;use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
In release mode with RT option set to Multi-threaded DLL (/MD)" got no errors or warnings.
what these indicate?. Are these as expected. Is the app expected to work under the option 2 and 3?. I like to be able to run my app in debug mode first to debug it then turn it to release mode.
Why MFC SD vs. dialog based behave so differently in this regard?