On Jul 22, 2010, at 5:40 PM, J Decker wrote:

On Thu, Jul 22, 2010 at 2:37 PM, John Drescher <[email protected]> wrote:
On Thu, Jul 22, 2010 at 5:25 PM, J Decker <[email protected]> wrote:
I'll add my two cents - I like that the names are the same, it allows me to switch the release out with the debug and not have to recompile
the executable.


You are not supposed to mix debug / release dlls in the same
application. The reason is the debug and release crt do not always
play well with each other.

it's still saved my ass a few times trying to figure out what the hell
was going on... but then critical things that would change function
like malloc/free I don't use, preferring instead a platform/library
independant allocer.


John


I'm on the other side of that one. I don't know how many _days_ I have wasted because I linked my debug version with a release version of something else and had the strangest errors and app crashes. After pulling my hair out trying to debug something that does not need to be debugged I finally remember that I forgot to swap out libraries. It was at that point where I wrote all my own CMake builds for each third party library I use and made sure each library was decorated with _debug so I knew I was linking against the proper library. Have not had a problem since.

Mike Jackson

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to