A simple program designed to bundle multi-file C++ programs into a single file, allowing them to be submitted on platforms such as codeforces.
The cpp-roller program makes certain assumptions about how your code is written. It only "rolls" the include statements which use quotation marks (that's how it differentiates system headers from file includes). It also groups angle bracket includes together and puts them at the beginning of the output file, so using odd headers that you want included in some files but not in others might have unforeseen consequences.
- The program currently doesn't build on windows because getopt is not available there
- Includes that are generated as a result of macro expansion do not and will not ever work due to the nature of the tool
The basic way to use the program is by running
cpproll <sources>Below is a complete list of available options:
-o <filename>sets the name for the output file. If left unspecified, the name is a.out-I <pathstring>sets the include directories (pathstring is a collection of paths, separated by either colons or semicolons depending on the system)-vprints the program version-hprints the help message