list all the other cpp files after main.cpp.
ie
g++ main.cpp other.cpp etc.cpp
and so on.
Or you can compile them all individually. You then link all the resulting “.o” files together.
More Related Contents:
- Why is '#' symbol used in C language's header ? Why not any other symbol ? [closed]
- String return from member function in C++
- how to write makefile when two header files include eachother in c++? [duplicate]
- Compilation error: expected constructor, destructor, or type conversion before ‘;’ token [closed]
- Error when building a C++ program for the second time [closed]
- C++ #include guards
- Splitting templated C++ classes into .hpp/.cpp files–is it possible?
- Makefiles, how can I use them? [closed]
- Where does Visual Studio look for C++ header files?
- Why does C++ compilation take so long?
- Tool to track #include dependencies [closed]
- Headers Including Each Other in C++
- How to link multiple implementation files in C
- How to include header files in GCC search path?
- Why does the library linker flag sometimes have to go at the end using GCC?
- Forward declare a standard container?
- Parsing strings of user input using the cparse library from git
- Difference between and ?
- Undefined reference error for template method [duplicate]
- How to create a shared library with cmake?
- Profiling the C++ compilation process
- Cyclic dependency between header files
- C++ class header files organization
- How to define several include path in Makefile
- static variables in an inlined function
- How to make Visual Studio use the native amd64 toolchain
- error: Class has not been declared despite header inclusion, and the code compiling fine elsewhere
- How to prevent non-specialized template instantiation?
- if / else at compile time in C++?
- Problem with compiling RInside examples under Windows