GNU Compiler

GNU Compiler Collection (GCC)

GCC is a compiler system produced by the GNU Project under General Public License, supports various programming languages (C, C++, Object C, FORTRAN, etc.)

GCC is a program language compiler developed by GNU.

Resources

G++

gcc vs. g++?

  • GCC is a compiler system which supports various programming languages
  • G++ is a GNU C++ compiler invocation command

So is g++ just gcc with a bunch of flags? Not exactly… https://stackoverflow.com/questions/172587/what-is-the-difference-between-g-and-gcc

Flags to use:

  • -std=c++17
  • -O3 for optimization
g++ -std=c++14 a1q1.cc 2DMotion.cc

woooooo, on my macbook, gcc and g++ are actually aliases for clang?? StackOverflow