I was wondering if anyone knows how I could test to find if SDL_Image is
being found by programs. I’ve got programs using sdl_image compiling
fine, but they immediately crash after trying to run them. I’m not sure
if it’s a problem of a bad binary, or if it’s just that it’s not being
found at all.
Is there any way to find out what the problem is?
Oh, and another kind of odd thing is that I’m unable to install the src
rpm. Even if I use rpmdrake to remove sdl_image, both it and urpmi will
report that the source rpm for sdl_image is already installed.
Joe Tierney wrote:
I was wondering if anyone knows how I could test to find if SDL_Image is
being found by programs. I’ve got programs using sdl_image compiling
fine, but they immediately crash after trying to run them. I’m not sure
if it’s a problem of a bad binary, or if it’s just that it’s not being
found at all.
Well, you could run ldd on the binary and see what all it links to, that
would see if it at least contains a reference to the lib, and if so,
where the lib is.
Is there any way to find out what the problem is?
I’d also suggest, if you’re compiling a C/C++ program using gcc or g++,
make sure you do an “unlimit core” to get core dumps, then compile with
-Wall -g as CFLAGS. Then, when the binary crashes, run a “gdb
core”. That will tell you the approximate line in the
approximate file where the dump occurs.–
“In Ghat they believe in vampire watermelons, although folklore is
silent
about what they believe about vampire watermelons. Possibly they suck
back.”
- Terry Pratchett, Carpe
Jugulum
Kevin M Lyons - Programmer - Nebrask@ Online <@Kevin_Lyons>