Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] Undefined reference to OpenGL when linking MyGUI  (Read 1955 times)

0 Members and 1 Guest are viewing this topic.

pvigier

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • pvigier's blog
[SOLVED] Undefined reference to OpenGL when linking MyGUI
« on: December 05, 2017, 10:50:33 pm »
Hello,

I am trying to integrate MyGUI in my SFML application. I have build MyGUI for OpenGL3. But when I try to link MyGUI, I get this error :

Quote
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libsfml-graphics.so||undefined reference to symbol 'glGetTexImage'|

Apparently there is a conflict between MyGUI and SFML for OpenGL.

I try to link OpenGL and GLEW but it does not resolve the problem.

Do yo have any thoughts on this ?

Thank you !
« Last Edit: December 05, 2017, 11:34:04 pm by pvigier »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10821
    • View Profile
    • development blog
    • Email
Re: Undefined reference to OpenGL when linking MyGUI
« Reply #1 on: December 05, 2017, 11:18:43 pm »
No idea what MyGUI is, but if you get an undefined reference to an OpenGL function, it means you haven't linked OpenGL properly.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

pvigier

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • pvigier's blog
Re: Undefined reference to OpenGL when linking MyGUI
« Reply #2 on: December 05, 2017, 11:33:03 pm »
You're right.

I made the terrible mistake of linking OpenGL before SFML and MyGUI... I change the order and everything is fine now.

Thank you!