lrc  1.2.1
About: lrc stands for Linux Resource Compiler. It provides a compiler to collect and a library to access compiled data.
  Fossies Dox: lrc-1.2.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

lrc Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies
  4. lrc-1.2.1.tar.gz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).

lrc - the Linux Resource Compiler

Programs may sometimes have more than just application libraries and an executable file. Especially games have graphics and sounds, and most of the time a lot of other stuff. One way to manage these additional items is to install them file by file, but this looks (IMHO) not very professional1. It is often better to pack these files into one big file. Windows has for that purpose the so called resources: a resource compiler reads a .rc file. All listed files in that .rc file are merged together in one big .res file. Unfortunately I haven't found anything like that for Linux, so I decided to write one myself, based on that idea.

lrc consists of two parts: The compiler itself, a command line tool called lrc and a library to extract the resources from the generated Resource Data file. The library is called liblrc.


lrc is the command line compiler. In the tradition of Unix programs, a successful compilation will cause no output. Error or warning texts will be displayed in the same manner as gcc does: <filename>:<line>:<column>: error: <Error cause>

lrc creates a so called .rdf2 file which contains all data, encrypted and/or compressed if desired. That file can be loaded at runtime or directly linked to the executable at link time.


liblrc is the counterpart of the lrc command line program. It is a C++ library that offers classes to load and de-compile a given .rdf file.


Documentation about the compiler and the library can be found on the Wiki on BitBucket: <>

Contributions / Patches

Contributions in form of corrections, tanslations, etc. are welcome. You may send them as patches (if possible git format), or - if you use Mercurial -as bundle or I might pull from your repository if it is reachable in the Net.


Do you like lrc? Do you hate lrc? Either way, send me a message! Either using the BitBucket message interface or directly an e-mail.

Licence and code

The licence for lrc and liblrc is the GNU Lesser General Public License (LGPL) version 3 or any later version. You'll find the LGPL here.

The source code is hosted on a public repository at BitBucket. The URL is <>.

  1. It might also cause performance problems if there are many files to load↩︎

  2. rdf stands for Resource Data File↩︎