FAQ

Separate Compilation in C++

Building projects in C++ is easy and fast… until it’s not. C++ people have figured out different tricks over the years to speed up compilation time, and today we mainly talked about a popular method called Separate Compilation. Make separate header and implementation files for your classes, keep the header files small, and use a Makefile (or other build system) to build the project. In that way, you can minimize the amount of wasted time spent recompiling code that doesn’t need to be recompiled.

source

Back to top button