To compile a .o file from a .cpp file: clang++ -std=c++11 -c NAME_OF_CPP e.g. clang++ -std=c++11 -c exampleMain.cpp To compile a program from .o files: clang++ -std=c++11 NAMES_OF_O_FILES -o NAME_OF_PROGRAM e.g. clang++ -std=c++11 exampleMain.o utils.o -o exampleMain.run