Fedora Core 3 Compile Error

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
cyberbillp
Posts: 12
Joined: Tue Jan 04, 2005 11:54 pm
Location: florida
Contact:

Fedora Core 3 Compile Error

Post by cyberbillp »

I'm having good luck getting started with Irrlicht on Suse 9.1, but at home I use Fedora Core 3. I can't get Hello World to compile.
I get this error, anyone know why?
__________________________________

Building the whole Project: 01_HelloWorld ...
make
g++ main.cpp -o example -I"../../include" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"../../lib/Linux" -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lz -ljpeg
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x1f): In function `__glXGetCurrentContext':
: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x3c): In function `__glXGetCurrentContext':
: undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x6e): In function `__glXSetCurrentContext':
: undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x84): In function `__glXSetCurrentContext':
: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x9f): In function `__glXSetCurrentContext':
: undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glthread.o)(.text+0x1f): In function `_glthread_InitTSD':
: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glthread.o)(.text+0x6d): In function `_glthread_GetTSD':
: undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glthread.o)(.text+0xa5): In function `_glthread_SetTSD':
: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Completed ... unsuccessful
Total time taken: 17 secs


ps
I searched the forums but found nothing.
Last edited by cyberbillp on Wed Jan 05, 2005 4:51 am, edited 1 time in total.
mm765
Posts: 172
Joined: Fri May 28, 2004 10:12 am

Post by mm765 »

add -lpthread
cyberbillp
Posts: 12
Joined: Tue Jan 04, 2005 11:54 pm
Location: florida
Contact:

thanks

Post by cyberbillp »

I knew it was something simple like that. Thanks.
Post Reply