I’m doing some experimenting with incorporating the MySQL api into a standard win32 console C++ project. I’m using the MSVC++ IDE.
I have two projects: One is the “Example” project that demonstrates the api. This project compiles just fine under Release mode but won’t work under Debug mode.
My second project is a “Test” project I created myself. Similarly, it will compile under Release but not under Debug.
Here are the compile options set for each project:
EXAMPLE RELEASE (works)
/nologo /MD /GX /O2 /I “e:/mysql++/include” /I “e:/mysql++/mysql/include” /D “WIN32” /D “NDEBUG” /D “_CONSOLE” /D “_MBCS” /Fp"Release/examples.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c
EXAMPLE DEBUG (no works)
/nologo /MLd /Gm /GX /ZI /Od /I “e:/mysql++/include” /I “e:/mysql++/mysql/include” /D “WIN32” /D “_DEBUG” /D “_CONSOLE” /D “_MBCS” /Fp"Debug/examples.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
TEST RELEASE (works)
/nologo /ML /W3 /GX /O2 /I “e:/mysql++/include” /I “e:/mysql++/mysql/include” /D “WIN32” /D “NDEBUG” /D “_CONSOLE” /D “_MBCS” /Fp"Release/BasicSQL.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c
TEST DEBUG (no works)
/nologo /MLd /W3 /Gm /GX /ZI /Od /I “e:/mysql++/include” /I “e:/mysql++/mysql/include” /D “WIN32” /D “_DEBUG” /D “_CONSOLE” /D “_MBCS” /Fp"Debug/BasicSQL.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
I’m wondering if someone can look at these combinations and perhaps explain what might be happening?
(PS. In both cases my code is good, since they’ve both been successfully compiled and executed – just under weird settings that I don’t understand)