Compilers

gcc

Compiling C++ programs

  • g++ -o my_app my_app.cpp 

Packages

  • gcc (GNU Compiler Collection; formerly GNU C Compiler)
  • gcc-c++: Adds C++ support)
  • gcc-g77: Adds Fortran 77 support
  • gcc-java: Compiles java into native code; uses gcc-libgcj
  • gcc-objc: Adds Objective-C support
  • libstdc++: Standard C++ libraries
  • glibc: Standard C library & standard math library (Linux requires them)
Utilities
  • gdb: GNU debugger for C, C++, fortran
  • gnat: Ada compiler
Identifying the version numbers
  • "gcc -v"
  • "rpm -q glibc"
  • "make -v"
  • "gdb -v"
Locating the utilities
  • "whereis gcc"
  • "whereis make"
Can install the full distribution, or install the core distribution and any specific language components needed.
Full distribution
  • C, C++, Objective-C, Fortran, Java [and Ada] compilers
  • Runtime libraries for C++, Objective-C, Fortran, and Java
  • [GNU compiler testsuites]
Core distribution
  • C language front end
  • Shared components
Specific language components (tarball)
  • Language front end
  • [Language runtime libraries]
Resources URL: 
notes/linux/resources
Sources URL: 
notes/linux/sources

See Also