Linking on Red Hat

Here are some ttroubles:

/usr/lib/libSDL.so: undefined reference to pthread_create' /usr/lib/libSDL.so: undefined reference topthread_cancel’
/usr/lib/libSDL.so: undefined reference to sem_destroy' /usr/lib/libSDL.so: undefined reference tosem_wait’
/usr/lib/libSDL.so: undefined reference to sem_post' /usr/lib/libSDL.so: undefined reference topthread_mutexattr_setkind_np’
/usr/lib/libSDL.so: undefined reference to sem_init' /usr/lib/libSDL.so: undefined reference topthread_sigmask’
/usr/lib/libSDL.so: undefined reference to sem_trywait' /usr/lib/libSDL.so: undefined reference topthread_mutexattr_init’
/usr/lib/libSDL.so: undefined reference to sem_getvalue' /usr/lib/libSDL.so: undefined reference topthread_join’
/usr/lib/libSDL.so: undefined reference to `pthread_cond_timedwait’
collect2: ld returned 1 exit status

This in Red Hat.
wtf?

Thanks in advance

E$h wrote:

Here are some ttroubles:

/usr/lib/libSDL.so: undefined reference to pthread_create' /usr/lib/libSDL.so: undefined reference topthread_cancel’
/usr/lib/libSDL.so: undefined reference to sem_destroy' /usr/lib/libSDL.so: undefined reference tosem_wait’
/usr/lib/libSDL.so: undefined reference to sem_post' /usr/lib/libSDL.so: undefined reference topthread_mutexattr_setkind_np’
/usr/lib/libSDL.so: undefined reference to sem_init' /usr/lib/libSDL.so: undefined reference topthread_sigmask’
/usr/lib/libSDL.so: undefined reference to sem_trywait' /usr/lib/libSDL.so: undefined reference topthread_mutexattr_init’
/usr/lib/libSDL.so: undefined reference to sem_getvalue' /usr/lib/libSDL.so: undefined reference topthread_join’
/usr/lib/libSDL.so: undefined reference to `pthread_cond_timedwait’
collect2: ld returned 1 exit status

This in Red Hat.
wtf?

Thanks in advance


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-lpthread maybe?

I have $(shell sdl-config --libs) in the Makefile.
Do I need anything else?

Oleksiy wrote:>>

-lpthread maybe?