[SDL] I get the following errors:

Peeta Basa Pati peeta.pati at ruhr-uni-bochum.de
Thu Aug 2 01:40:01 PDT 2001


Hi!
I am completely new here. May be I am asking some trivial questions. But
if any one can help, I'll be thankful.

I wrote a simple code:

#include<stdio.h>
#include<stdlib.h>
#include "/home/pati/SDL-1.2.2/include/SDL.h"

int main()
{
    if(SDL_Init(SDL_INIT_TIMER)==-1){
        printf("Could not initialize SDL: \n");
        exit(-1);
    }
    return(0);

}


and tried to compile with:
gcc -I/usr/local/include/SDL -o test1 test1.c -O2 -lSDL -lpthread

It gave me the following errors:

/usr/i486-suse-linux/bin/ld: warning: libartsc.so.0, needed by
/usr/local/lib/libSDL.so, not found (try using --rpath)
/usr/local/lib/libSDL.so: undefined reference to `arts_stream_get'
/usr/local/lib/libSDL.so: undefined reference to `arts_init'
/usr/local/lib/libSDL.so: undefined reference to `arts_play_stream'
/usr/local/lib/libSDL.so: undefined reference to `arts_stream_set'
/usr/local/lib/libSDL.so: undefined reference to `arts_close_stream'
/usr/local/lib/libSDL.so: undefined reference to `arts_write'
collect2: ld returned 1 exit status


Can anyone help?

With regards,
pati




More information about the SDL mailing list