4.3 Preparing Windows Applications for Debugging

If you want to use symbolic information and access source files with CVW, preparation depends on your compiler and linker.

Suppose, for example, that you were using Microsoft C Optimizing Compiler (CL), version 5.1 or later, and Microsoft Segmented Executable Linker (LINK). You would compile with the /Zi option to produce object files containing symbolic information and the /Od (disable optimization) option to ensure that code generated by the compiler would match the statements in the C-language source code. You would link with the /co option to produce an executable file containing symbolic information.

For further information about the settings you need to use, see the documentation that accompanied your compiler and linker.