Skip to content

malevitzch/cpp-roller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-roller

A simple program designed to bundle multi-file C++ programs into a single file, allowing them to be submitted on platforms such as codeforces.

Assumptions

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.

Known issues and limitations

  • 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

Usage

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)
  • -v prints the program version
  • -h prints the help message

About

A program which allows the "rolling" of a group of c++ files including each other into a single one (since websites like codeforces only allow single-file submissions).

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors