mangleLinkageKeywordOnlyFuncs Code Generation Option (C++, OS/2, Windows)

Syntax: Default:
gen(mangleLinkageKeywordOnlyFuncs[, yes])
gen(mangleLinkageKeywordOnlyFuncs, no)
gen(mangleLinkageKeywordOnlyFuncs[, yes])

This option controls whether names of functions that have linkage keywords, but for which no linkage strings are specified with the extern keyword, are mangled.

By default the names are mangled. For example, the following functions have linkage keywords, and their names are mangled:

void __optlink g1(int);
void __stdcall g2(int);
void __system g3(int);

The following functions have linkage strings, and their names are never mangled:

extern "C" void f1(int);
extern "OPTLINK" void f2(int);
extern "SYSTEM" {
   void f3(int);
   void f4(int);
}

Set mangleLinkageKeywordOnlyFuncs to yes make new code compatible with modules compiled with previous versions of VisualAge C++ and predecessor products.

This is a global codestore option.



Incremental C++ Build
C Compilation
Configuration Files
Decorated and Mangled Names


Set Build Options for the Project
Build
Demangle C++ Names
Get Mangled Names for C++ Symbols


Code Generation Options
Build Options for Compatibility with Old C++ Compilers