SFML community forums

Help => Window => Topic started by: DasEtwas on August 18, 2009, 09:35:22 pm

Title: Linker Problem
Post by: DasEtwas on August 18, 2009, 09:35:22 pm
Hi
I have a Problem while compiling a script simliar to
http://www.sfml-dev.org/tutorials/1.5/window-opengl.php
It appears a Linker Error (2019).
Its the same wich appears if one didn't write the library file into the Linker properties, but window.lib is included.
Any Ideas?
I think its an obviously stupid mistake but I really don't get it.
I'm using Microsoft Visual Studio 2008 and Windows 7 RC 64
Thanks!
DasEtwas
Title: Linker Problem
Post by: Laurent on August 18, 2009, 11:51:33 pm
Quote
It appears a Linker Error (2019).

I don't know all the linker error codes. Could you please show us the message instead? ;)
Title: Linker Problem
Post by: DasEtwas on August 19, 2009, 12:12:53 am
unresolved external symbol in gl or sth. like that
(It's in german so you won't have fun with the original, I tried to translate it above :)
Title: Linker Problem
Post by: Laurent on August 19, 2009, 08:47:12 am
Did you link to opengl32.lib?
Title: Linker Problem
Post by: DasEtwas on August 19, 2009, 09:58:08 am
No i didn't, that wasn't explained in the tutorial, so I did now, but there is still one Error left:
unresolved external symbol in "_gluPerspective@32" in the Function "_main".

P.S: I is it possible that SFML has Problems with Win7? Because it does funny things when I'm tryin to load a sprite.
Ty so far
Lemuna
Title: Linker Problem
Post by: Laurent on August 19, 2009, 10:06:46 am
You also have to link to glu32.lib.

Quote
No i didn't, that wasn't explained in the tutorial

Well, if you're doing OpenGL stuff you're supposed to know how to use OpenGL :)
Title: Linker Problem
Post by: DasEtwas on August 19, 2009, 01:14:05 pm
Hm so i have to look at that, but thank you it works perfectly right now :)