PDA

View Full Version : Linking problem with SDL... again...



MPech
04-01-2002, 11:59 PM
Hello again ! ;P

i'am having this error message when i compile
my program running SDL :

libSDL-1.2.so undefined reference to pthread_create
libSDL-1.2.so undefined reference to pthread_cancel
libSDL-1.2.so undefined reference to sem_destroy
sem_wait
etc...

looking at the names of the functions missing, i think they come from the same library, but I can't find which, even in the man pages.

Someone know which library I must link to compile my prog ? (at last... ;P)

MPech
04-02-2002, 12:15 AM
Uhm... sorry no need to answer this one...
I found that I had to link the libpthread.so lib. As simple as it is... ;P