Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

gcc

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_ntomipsle my_file.cpp

Syntax:

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

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


[Previous] [Contents] [Index] [Next]