Jump to content
  • Advertisement
Sign in to follow this  
D_Tr

Help with glfw linker errors.

This topic is 3901 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello people, i am using linux mint (a distro derived from ubuntu) and i am having problems compiling a c++ program that uses glfw. The problem started after i installed the nvidia drivers for my 8800gt (the same program compiled fine before i installed th drivers). Now, when trying to compile i get the following output:
dtr@dtr-desktop:~/Desktop/OpenGL$ g++ -o app Main.cpp -lglfw -lGL
/usr/local/lib/libglfw.a(x11_init.o): In function `_glfwPlatformTerminate':
x11_init.c:(.text+0x39): undefined reference to `pthread_kill'
/usr/local/lib/libglfw.a(x11_init.o): In function `_glfwPlatformInit':
x11_init.c:(.text+0xea): undefined reference to `XRRQueryExtension'
/usr/local/lib/libglfw.a(x11_window.o): In function `_glfwPlatformRefreshWindowParams':
x11_window.c:(.text+0x803): undefined reference to `XRRGetScreenInfo'
x11_window.c:(.text+0x80d): undefined reference to `XRRConfigCurrentRate'
x11_window.c:(.text+0x81b): undefined reference to `XRRFreeScreenConfigInfo'
/usr/local/lib/libglfw.a(x11_window.o): In function `_glfwPlatformCloseWindow':
x11_window.c:(.text+0xb7a): undefined reference to `XRRGetScreenInfo'
x11_window.c:(.text+0xb9d): undefined reference to `XRRSetScreenConfig'
x11_window.c:(.text+0xba6): undefined reference to `XRRFreeScreenConfigInfo'
/usr/local/lib/libglfw.a(x11_window.o): In function `_glfwPlatformPollEvents':
x11_window.c:(.text+0x1160): undefined reference to `XRRUpdateConfiguration'
/usr/local/lib/libglfw.a(x11_window.o): In function `_glfwPlatformOpenWindow':
x11_window.c:(.text+0x201c): undefined reference to `XRRSelectInput'
/usr/local/lib/libglfw.a(x11_fullscreen.o): In function `_glfwPlatformGetVideoModes':
x11_fullscreen.c:(.text+0x1cf): undefined reference to `XRRGetScreenInfo'
x11_fullscreen.c:(.text+0x1e0): undefined reference to `XRRConfigSizes'
x11_fullscreen.c:(.text+0x21c): undefined reference to `XRRFreeScreenConfigInfo'
/usr/local/lib/libglfw.a(x11_fullscreen.o): In function `_glfwSetVideoModeMODE':
x11_fullscreen.c:(.text+0x33a): undefined reference to `XRRGetScreenInfo'
x11_fullscreen.c:(.text+0x355): undefined reference to `XRRConfigCurrentConfiguration'
x11_fullscreen.c:(.text+0x3a5): undefined reference to `XRRSetScreenConfigAndRate'
x11_fullscreen.c:(.text+0x3bd): undefined reference to `XRRSetScreenConfig'
/usr/local/lib/libglfw.a(x11_fullscreen.o): In function `_glfwGetClosestVideoMode':
x11_fullscreen.c:(.text+0x40b): undefined reference to `XRRGetScreenInfo'
x11_fullscreen.c:(.text+0x419): undefined reference to `XRRConfigSizes'
x11_fullscreen.c:(.text+0x4a1): undefined reference to `XRRConfigRates'
x11_fullscreen.c:(.text+0x4ee): undefined reference to `XRRFreeScreenConfigInfo'
x11_fullscreen.c:(.text+0x524): undefined reference to `XRRFreeScreenConfigInfo'
/usr/local/lib/libglfw.a(x11_fullscreen.o): In function `_glfwSetVideoModeMODE':
x11_fullscreen.c:(.text+0x3cf): undefined reference to `XRRFreeScreenConfigInfo'
collect2: ld returned 1 exit status

Any ideas what could have caused this?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!