A new document type – C++ Source Document (
*.cpp) – is available from the File»New sub-menu, and full syntax support for this new language (labeled C++(Builder)) is provided, in line with all of Altium Designer's coding-aware editors.
New C++ compilers have been introduced for all 32-bit processor toolchains, for example cp3000 for the TSK3000A. The C++ compiler in each case can be regarded as a preprocessor, or front-end, which accepts as input C++ source files or sources using C++ language features – essentially files with extensions
*.cxx. The output of the C++ compiler is an intermediate C file (
*.ic), which is subsequently passed as input to the standard C compiler for the toolchain.
C++ compiler options are defined on the Compiler Options tab of the Options for Embedded Project dialog (Project»Project Options with the C++ document active). Simply expand the C++ Compiler entry and define options on the various sub-pages as required.