The Doryen library v1.4.2
Library content :
To use the library, just include the right file :
C++ : #include "libtcod.hpp" C : #include "libtcod.h" Py : import libtcodpy as libtcodFor C/C++, you have to put the libtcod include directory in your compiler include path.
With Visual Studio, add the libtcod-VS.lib in your linker inputs.
With Mingw32, add -L./lib -ltcod-mingw to your linking command to link with lib/libtcod-mingw.a.
With gcc on Linux, add -ltcod to your linking command to link with libtcod.so.
With g++ on Linux, add -ltcod -ltcod++ to your linking command to link with libtcod++.so.
With g++ on MacOSX, add -ltcod -ltcod++ to your linking command to link with libtcod++.a
gcc -O3 sample.c -o samples_c -L. -ltcod -I include g++ -O3 sample.cpp -o samples_cpp -L. -ltcod -ltcod++ -I include
If you don't use a custom font, terminal.png must be in the same directory as your executable.
On windows, libtcod-*.dll must be in the same directory as your game exe or py.
On Linux, libtcod.so (and libtcod++.so if you're using C++) must be in your LD_LIBRARY_PATH :
export LD_LIBRARY_PATH=. ./samples_c