I've recently started playing around with SDL, following some tutorials online. I got a basic test program going, and it compiled fine, and it ran fine until recently. Starting about two days ago, trying to run the binary (The same binary, not re-compiled) throws the following error:
./sdltest: symbol lookup error: /usr/local/lib/libSDL-1.2.so.0: undefined symbol: _XGetRequest
I'm fairly confident I didn't install or remove anything since the program stopped working. I'm running 12.10 (Have been since before I got this error, so I'm pretty sure it's not a 12.10 bug), and I've been compiling with the following commands (Extracted from my makefile):
g++ -c -o main.o main.cpp
g++ -c -o CApp.o CApp.cpp
g++ main.o CApp.o -o sdltest -lSDL
Does anybody have any idea what went wrong, and what I might be able to do to fix it?