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

Author Topic: Linker Problem  (Read 3576 times)

0 Members and 1 Guest are viewing this topic.

DasEtwas

  • Newbie
  • *
  • Posts: 4
    • ICQ Messenger - 239308373
    • MSN Messenger - d-etwas@hotmail.de
    • View Profile
Linker Problem
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Linker Problem
« Reply #1 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? ;)
Laurent Gomila - SFML developer

DasEtwas

  • Newbie
  • *
  • Posts: 4
    • ICQ Messenger - 239308373
    • MSN Messenger - d-etwas@hotmail.de
    • View Profile
Linker Problem
« Reply #2 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 :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Linker Problem
« Reply #3 on: August 19, 2009, 08:47:12 am »
Did you link to opengl32.lib?
Laurent Gomila - SFML developer

DasEtwas

  • Newbie
  • *
  • Posts: 4
    • ICQ Messenger - 239308373
    • MSN Messenger - d-etwas@hotmail.de
    • View Profile
Linker Problem
« Reply #4 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Linker Problem
« Reply #5 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 :)
Laurent Gomila - SFML developer

DasEtwas

  • Newbie
  • *
  • Posts: 4
    • ICQ Messenger - 239308373
    • MSN Messenger - d-etwas@hotmail.de
    • View Profile
Linker Problem
« Reply #6 on: August 19, 2009, 01:14:05 pm »
Hm so i have to look at that, but thank you it works perfectly right now :)