I would be grateful if somebody could help me with my
problem. I have Mandrake 10.1, downloaded SDL 1.2.9,
installed it and with this little program:
#include <stdio.h>
#include <SDL/SDL.h>
int main( int arc, char* argv[] )
{
if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 )
{
fprintf(stderr, “Unable to init SDL: %s\n”,
SDL_GetError());
exit(1);
}
else
printf( “SDL initialized sucesfully!!!\n” );
return 0;
}
THIS HAPPENS:
gcc -o mali mali.c
/home/berislav/tmp/ccZdHbHf.o(.text+0x22): In function
main': : undefined reference to
SDL_Init’
/home/berislav/tmp/ccZdHbHf.o(.text+0x34): In function
main': : undefined reference to
SDL_GetError’
collect2: ld returned 1 exit status
So, it seems to me that implementation of the calling
functions was not found.
Responses to command from FAQs are as follows:
which sdl-config
/usr/bin/sdl-config
sdl-config --version
1.2.9
locate libSDL
/usr/share/doc/libSDL1.2-1.2.7
/usr/share/doc/libSDL1.2-1.2.7/README-SDL.txt
/usr/share/doc/libSDL1.2-1.2.7/BUGS
/usr/share/doc/libSDL1.2-1.2.7/COPYING
/usr/share/doc/libSDL1.2-1.2.7/CREDITS
/usr/share/doc/libSDL_image1.2-1.2.3
/usr/share/doc/libSDL_image1.2-1.2.3/COPYING
/usr/lib/libSDL-1.2.so.0.7.0
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL_image-1.2.so.0.1.2
/usr/lib/libSDL_image-1.2.so.0
/usr/lib/libSDLmain.a
/usr/lib/libSDL.a
/usr/lib/libSDL.la
tail config.log
tail: cannot open `config.log’ for reading: No such
file or directory
Thank you,
Berislav
Croatia (Europe)__________________________________________
Yahoo! DSL ? Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com