Including the JrDebugLogger Files from Your Code |
Top Previous Next |
One and only one of your source code files, usually the one containing your main() procedure, should #include "jrdebug_main.cpp" (it defines some static variables and you will get a link error if you forget to include it).
Alternatively, you could add this cpp to your project or makefile, and just use the #include "jrdebug.h" here too.
//--------------------------------------------------------------------------- // One (and only one) .cpp in your application should do: #include "jrdebug_main.cpp" //---------------------------------------------------------------------------
All other files in your application that need to utilize some debugging functions should #include the "jrdebug.h" file. //--------------------------------------------------------------------------- // Other files in your application that want to use debug logging: #include "jrdebug.h" //---------------------------------------------------------------------------
The other header files in the JrDebug directory (and jrdebug_switch.h) are referenced automatically by the jrdebug.h file and you do not need to reference them from your code. |