Compile problems - Kubuntu

nobody wrote on Wednesday, December 19, 2007:

When I try to compile using Kubuntu ( I did make x11-install btw, and have run the script)
I get this:

linking glfwtest (g++)
linking glfwtest (g++)
/usr/local/lib/libglfw.a(x11_init.o): In function `_glfwPlatformTerminate’:
x11_init.c:(.text+0x39): undefined reference to `pthread_kill’

What have I done wrong? I will provide the code I used if you need it.
It’s not using anything to do with threads ( to my knowledge, probably something to do with when the program exits? I have no experience with threads ).

I’m using kdevelop with automake. I have included -lGL -lglfw in the linker flags.
Do I need to change the order?

I have included cstdlib and GL/glfw.

I would appreciate it if you could give me a run through of how to install GLFW in kubuntu incase I’ve done something wrong :smiley:

I have got the code running brilliantly on windows and glfw looks excellent!

Thanks in advance for your help,
Matt-W

nobody wrote on Wednesday, December 19, 2007:

Very sorry, entirely my fault!

I did make x11-install again, and found that when it compiled the example programs (most of which worked)
I used: -L/usr/X11R6/lib -lGLU -lGL -lX11 -lpthread -lm . I put this into kdevelop, plus -lglfw
and it WORKS!

Sorry for wasting your time, but anyone who gets this problem, link with those :smiley:

Thanks :slight_smile: