问题 Is there an automated way to take a large amount of C++ header files and combine them in a single one? This operation must, of course, concatenate the files in the right order so that no types, etc. are defined before they are used in upcoming classes and functions. Basically, I'm looking for something that allows me to distribute my library in two files ( libfoo.h, libfoo.a ), instead of the current bunch of include files + the binary library. 回答1: As your comment says: .. I want to make it