SFML community forums

Help => Window => Topic started by: aXyde on October 03, 2009, 01:32:20 pm

Title: [solved] cant compile: Tutorial - Window - Using OpenGL
Post by: aXyde 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