Linking problem with SDL... again

Hello again ! :stuck_out_tongue_winking_eye:

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)

Uhm… sorry no need to answer this one…
I found that I had to link the libpthread.so lib. As simple as it is… :stuck_out_tongue_winking_eye:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.