This is a very strange problem. I'm unit testing C-source files using a C++ testing framework (google test). For this to work, I've taken care of all the necessary "#ifdef __cplusplus, extern "C", #endif" statements in the C header files to satisfy the linker.
I'm using MinGW on a Windows 7 machine, gcc 4.7.2. The IDE I'm using is Code::Blocks.
The unit tests run perfectly fine if I build them from withing the IDE, but if I try to build them using make in the command line, upon executing the successfully built application, I get the error: "Test.exe has stopped working".
What could be causing this and how do I diagnose the error?