Originally I didn't have the files as part of a project, I was just building from freerct.cpp. I created a new project in CodeBlocks and added the src files and now Im just getting undefined reference to SDL functions (e.g. SDL_PollEvent(), SDL_GetTicks(), etc).
I had already added /usr/include/SDL2 to the search directories. I tried adding the SDL2 and SDL2_ttf entries to the linker settings like you mentioned and wasn't really sure what to choose, so I chose libSDL2.a and SDL2_ttf.a. Is that correct? Because after doing that I get the same results. Also my machine doesn't have a /usr/lib64 directory, just /lib64 and /usr/lib. I added both to the Search Directories : Linker and still the same results. Any Clue?
Thanks for the help.