I'm trying to statically link libtcod to my C++ project without success. I get many linking errors, including:
./tuto: error while loading shared libraries: libtcodxx.so.1: cannot open shared object file: No such file or directory
Has anyone had similar problems with that library?
Which flags do you use while linking to the library? Did you used
-staticflag, do you specified-ltcod? If not, add-static -ltcodto the end of command line. Or you can force tell gcc to link with static builded library:gcc %YOUR_OTHER_FLAGS_ANDFILES% -l:libtcod.a -L%PATH_TO_TCOD_STATIC_BUILDED_FILE%