[SDL] A little Problem...
tld at carlbro.dk
Mon Apr 10 06:17:31 PDT 2000
Try running the following commands, and use the output as compile flags
As an example you need to link to pthreads lib...
Peter Kling wrote:
> I hope you understand my english, it isn't very good.
> I have problems to compile a simple SDL C++ code (I've already compiled
> some demos without any problem). the code is verry simple, only to show
> a window. I think the code is right, but, whenever I want to compile it
> (I use g++, Linux), I get the following Messages:
> main.cpp: In function 'int main(int,char **)'_
> main.cpp:16:warning: implicit declaration of function 'int atexit(...)'
> /usr/lib/libSDL.so: undefined reference to 'pthread_create'
> /usr/lib/libSDL.so: undefined reference to 'pthread_cancel'
> /usr/lib/libSDL.so: undefined reference to 'pthread_sigmask'
> /usr/lib/libSDL.so: undefined reference to 'pthread_join'
> collect2: ld returned 1 exit status
> Do anybody know, what I make wrong? to compile, I use the command:
> g++ main.cpp -o main -lSDL
> istn't that right?
> thank you for any help!!!
More information about the SDL