Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

g++

Compile and link a program (GNU)


Note: We recommend you use qcc instead of invoking g++ directly. You can use the -V option to qcc to invoke g++. For example:
qcc -Vgcc_ntoarmle my_file.cpp

Syntax:

g++_variant [ option | filename ]...

Runs on:

QNX Neutrino, Linux, Microsoft Windows

Options:

The g++_variant depends on the target platform, as follows:

Target platform: g++_variant:
ARM ntoarm-g++
MIPS ntomips-g++
PowerPC ntoppc-g++
SH4 ntosh-g++
x86 ntox86-g++

Description:

See gcc for details.

We recommend you use qcc or QCC instead of gcc to compile and link your programs.

For detailed documentation about gcc, see the GNU website at http://www.gnu.org/.


Note: If you have trouble using the default debug format (-gdwarf), switch to -gdwarf-2 or -gstabs.

Exit status:

0
Success.
33
A nonfatal compilation error was encountered.
34
A fatal compilation error was encountered.
35
Unable to open a required file.

Contributing author:

GNU

See also:

gcov, gdb, qcc