Microsoft KB Archive/98592

= INFO: /Zg Not Designed for Use with .CPP or .CXX Files =

Article ID: 98592

Article Last Modified on 12/11/2003

-

APPLIES TO


 * Microsoft C/C++ Professional Development System 7.0
 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 1.5 Professional Edition
 * Microsoft Visual C++ 1.51
 * Microsoft Visual C++ 1.52 Professional Edition
 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 2.0 Professional Edition
 * Microsoft Visual C++ 2.1
 * Microsoft Visual C++ 4.0 Standard Edition

-



This article was previously published under Q98592



SUMMARY
If you specify the /Zg compiler option switch when compiling a file with the .CPP or .CXX file extension, the compiler may generate a large number of function prototypes. If the number of prototypes is very large, a null pointer assignment, run-time overflow, or other error can occur. This behavior varies depending on the amount of memory available to the compiler.

The /Zg option is not designed for use with .CPP or .CXX files. It is designed to generate function prototypes only for .C files.

Sample Code
/*   * Compile options needed: /Zg */

#include 

void main {     cout << &quot;Hello out there&quot;; }

