Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Posted 19 June 2012 - 01:03 PM
Posted 21 June 2012 - 07:34 AM
Edited by Wonder Boy, 21 June 2012 - 10:22 AM.
Posted 21 June 2012 - 07:29 PM
g++ *.cpp -I/my_include_dir/ -L/my_lib_dir/ -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL -lpthread -ldl -lfreetype -lz -Wl,-rpath,. -o build/tictactoe32 -m32
ldd <binary>Check which directories will be searched for libraries:
readelf -d <binary> | grep RPATH
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.