Use an External Makefile to Mix Release and Debug Information
| Overview
This technique eliminates the need to alter the effects of a release build. It also eliminates the need to manually recompile each module to keep the object files up to date. However, you can no longer change compile and link options from within the development environment. The makefile has to be maintained manually. The important thing to keep in mind is that if you want to link with the debug MFC libraries you must have the _DEBUG flag defined for every module. Conversely, if you want the release MFC libraries, you must have NDEBUG defined. For more information on writing external makefiles, see .