[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Using the C++ Compiler Always

If you turn on the Activate C++ Compiler option in the C/C++ Language Panel, the compiler compiles all the C source files in your project as C++ code. If you turn this option off, the CodeWarrior IDE looks at a file name's suffix to determine whether to use the C or C++ compiler. The the suffixes it looks for are described by the entries in the CodeWarrior IDE's File Mappings settings panel. See the IDE User Guide for more information on configuring this settings panel.

This option corresponds to the pragma cplusplus. To check whether this option is on, use __option (cplusplus). By default, this option is off.

See also "cplusplus" and "Checking Options."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000