C++ resource compiler. cpprc will generate a C++ source file (along with the corresponding header file) that embeds any given data file and provides a Resource class which gives access to this data. The Resource class can be created in two flavours: one using STL streams, the other is using WxWidgets streams.

If you know "qtrc" of the famous QT toolkit, then you know what this tool is doing too.


Latest version: cpprc-0.4.3.tar.bz2

The development version is available on GitHub.
You may easily clone the project by running:

$ git clone git://github.com/markusfisch/cpprc


This tool should run on any system that has a decent C++ compiler.


  1. Download tarball above

  2. Unpack tarball:

    $ tar xjvf cpprc-x.x.x.tar.bz2
  3. Change into the new directory "cpprc" and compile it by:

    $ cd cpprc
    $ make
  4. Place the executable somewhere in your path, i.e. for a local install try:

    $ mv cpprc ~/bin

    Or, if you want to make the program available for all users, do this as root:

    $ mv cpprc /usr/local/bin


There is no configuration necessary.

If you are using Makefiles and (at least) a *nix-like environment and have your resources in a subdirectory called say "data", you can do something like this in your Makefile:

	if ! [ -f Resources.cpp ] || \
		[ "`find data/ -newer Resources.cpp`" ]; then \
		cpprc -f wxWidgets -o Resources `find data/ -type f`; \


Cpprc is open source and licensed under the MIT license.