localTypedefs Language Option (C++)

Syntax: Default:
lang(localTypedefs[, yes])
lang(localTypedefs, no)
lang(localTypedefs, no)

This option controls whether types defined by typedef statements are globally visible or are local to the C++ source file that contains the definition of the type.

By default, VisualAge C++ treats typedefs as global declarations. Usually, the default setting is appropriate for incremental compiling.

The default does not conform to ANSI C++, but facilitates treating header files as sources for builds. If you convert an included header file to a primary file, make sure you build with the default. Otherwise other sources cannot use types defined in typedef statements in the converted headers.



Incremental C++ Build
C Compilation
Configuration Files
One-Definition Rule


Convert Included Source Files to Primary Source Files
Set Build Options
Build


Language Options for C++
Build Options for Compliance With the C++ Standard