| Syntax: | Default: |
| /OLD[CPP] /NOOLD[CPP] |
/NOOLDCPP unless /Gk compiler option is used |
The compiler passes the /OLDCPP option to the linker when you compile and link in one step with the /Gk compiler option. /OLDCPP tells the linker to ignore the template resolution directives in the old object files, and continue linking. Compile and link with /Gk when you are linking old object files or libraries, created with version 2.1 of the compiler or earlier, that use templates . The compiler then calls the muncher from the previous version to resolve the templates in the old object code.
For new object code (created by compilers from VisualAge for C++ Version 3.0 or later), the linker handles template resolution. Normally the linker stops linking when it encounters old object files that require template resolution, and generates an error message that tells you to compile and link with the /Gk compiler option.