- Windows: Visual Studio
- Linux: Qt Creator
- Mac: Xcode
- To compile with GCC (c):
gcc input.c -o output.o
(optional param for cpp:-lstdc++
) - To compile with G++ (c++):
g++ input.cpp -o output.o
- To compile with G++ (c++11):
g++ -std=c++11 input.cpp -o output.o
- To compile with CLang:
clang++ input.cpp -o output.o
- To run:
./output.o
brew install gcc clang-format
Create a MacOS CommandLineTool
and select language C++.