call Code Generation Option (OS/2, Windows)

Syntax: Default:
gen(call, convention) gen(call, optlink)

This option sets the default calling convention for C and C++ functions. This table lists the conventions you can specify and the resulting linkage convention used by functions:

convention linkage
optlink _Optlink
system _System
_System
stdcall __Stdcall
cdecl __cdecl

By default, _Optlink is used for function calls.

To override the default calling convention for specific functions, declare them with linkage keywords in the source.

When you use functions from libraries supplied with VisualAge C++ and include the appropriate headers, you do not have to specify calling conventions used by those functions.



Incremental C++ Build
C Compilation
Configuration Files
Calling Conventions


Set Build Options
Build


Code Generation Options
option Configuration File Directive