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

Author Topic: [solved] cant compile: Tutorial - Window - Using OpenGL  (Read 3157 times)

0 Members and 1 Guest are viewing this topic.

aXyde

  • Newbie
  • *
  • Posts: 2
    • View Profile
[solved] cant compile: Tutorial - Window - Using OpenGL
« on: October 03, 2009, 01:32:20 pm »
Hi,

As the title says im not able to compile the code in the "Tutorial - Window - Using OpenGL" tutorial on this website (http://www.sfml-dev.org/tutorials/1.5/window-opengl.php).

Build messages:
Code: [Select]
In function `main':
undefined reference to `gluPerspective@32'
=== Build finished: 1 errors, 0 warnings ===


I guess this is related to the linker settings which are for me:
Code: [Select]
-lsfml-window
-lsfml-system
-lopengl32


By the way when i try to compile the OpenGL sample of the SDK i get the same error so i figure i do something wrong, what is it?

Edit: Solved now just had to add -lglu32

 

anything