libSDLx11.so not loading

The programs in the examples directory work, but if I try to use any of
the programs in test (or xgenem), I get the error message:

Couldn’t initialize SDL: Failed loading libSDLx11.so:
/home/tilford/libs/SDL/libSDLx11.so: undefined symbol: pthread_create
<<<

I’m using Linux, Glibc, and will provide more information if that would
help. Do you have any idea what is wrong and how I could fix it?

Thank you.—
mjt

The programs in the examples directory work, but if I try to use any of
the programs in test (or xgenem), I get the error message:

Couldn’t initialize SDL: Failed loading libSDLx11.so:
/home/tilford/libs/SDL/libSDLx11.so: undefined symbol: pthread_create
<<<

I’m using Linux, Glibc, and will provide more information if that would
help. Do you have any idea what is wrong and how I could fix it?

This should be in the FAQ.
When you built the library, it said:

  • Compiling with pthreads – you need compile your application with
    -D_REENTRANT and link with the pthread library (-lpthread)

You need to edit the Makefile so that this is done.
There are comments in the test Makefile to help you do this.

A question for th elist:
I’m thinking about adding the same sort of autodetection that
the demos use, for the test programs. This would mean that the test
programs would now rely on GNU make, but would no longer need that
"include mkfrag/config/make.conf" hack.

A good idea? Yes? No?

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

A question for th elist:
I’m thinking about adding the same sort of autodetection that
the demos use, for the test programs. This would mean that the test
programs would now rely on GNU make, but would no longer need that
"include mkfrag/config/make.conf" hack.

A good idea? Yes? No?

I thnk so.

Kent Mein
@Kent_Mein