Linking C++ code with ‘gcc’ (without g++) December 22, 2023 by Tarik You can link the standard c++ library with the -l flag to gcc: gcc cplusplus.o -lstdc++ -o myexe