Pthread?

Are you linking with libpthread? The option ‘-lpthread’ to gcc.
It should be listed in ‘sdl-config --libs’.

JW

seanairt wrote:>

Hi. I’m working off a fresh install of SuSE 6.4 and am running into compilation errors
I’ve not seen before.
Any time I compile my SDL-based programs, I get many errors along these lines:

/usr/local/lib/libSDL.so: undefined reference to ‘pthread_create’

I thought this might have this had something to do with SuSE’s preinstalled version,
so I just tried the newly released 1.1.3 SDL libs. I get the same thing. I’ve also
double-checked for glibc and xlib. So far, no luck.

If anyone could help point me in the right direction, I’d appreciate it.

Shaun


// John Watson
// Software Engineer – STScI Archive Team

Hi. I’m working off a fresh install of SuSE 6.4 and am running into compilation errors
I’ve not seen before.
Any time I compile my SDL-based programs, I get many errors along these lines:

/usr/local/lib/libSDL.so: undefined reference to ‘pthread_create’

I thought this might have this had something to do with SuSE’s preinstalled version,
so I just tried the newly released 1.1.3 SDL libs. I get the same thing. I’ve also
double-checked for glibc and xlib. So far, no luck.

If anyone could help point me in the right direction, I’d appreciate it.

Shaun

seanairt wrote:

Hi. I’m working off a fresh install of SuSE 6.4 and am running into compilation errors
I’ve not seen before.
Any time I compile my SDL-based programs, I get many errors along these lines:

/usr/local/lib/libSDL.so: undefined reference to ‘pthread_create’

I thought this might have this had something to do with SuSE’s preinstalled version,
so I just tried the newly released 1.1.3 SDL libs. I get the same thing. I’ve also
double-checked for glibc and xlib. So far, no luck.

If anyone could help point me in the right direction, I’d appreciate it.

Shaun

You need to like to -lpthread.

% nm /usr/lib/libpthread.so | grep pthread_create
0000730c t __pthread_create_2_0
00007e14 t __pthread_create_2_1
00007e14 T pthread_create@@GLIBC_2.1
0000730c T pthread_create at GLIBC_2.0

Mo DeJong
Red Hat Inc

try using -lpthread in your compile lineOn Wed, 07 Jun 2000, you wrote:

Hi. I’m working off a fresh install of SuSE 6.4 and am running into compilation errors
I’ve not seen before.
Any time I compile my SDL-based programs, I get many errors along these lines:

/usr/local/lib/libSDL.so: undefined reference to ‘pthread_create’

I thought this might have this had something to do with SuSE’s preinstalled version,
so I just tried the newly released 1.1.3 SDL libs. I get the same thing. I’ve also
double-checked for glibc and xlib. So far, no luck.

If anyone could help point me in the right direction, I’d appreciate it.

Shaun