clang++ src/main.cpp src/class/*.cpp -o YOUR_TEST_OR_INSTALL_LOCATION_HERE Replace YOUR_TEST_OR_INSTALL_LOCATION_HERE with path and name of your output file.