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

Author Topic: Linker error  (Read 1078 times)

0 Members and 1 Guest are viewing this topic.

Azure Eyes

  • Newbie
  • *
  • Posts: 2
    • View Profile
Linker error
« on: March 05, 2011, 03:50:58 am »
Ok, so I managed to get SFML working in VS 2010 except for a single function: "gluPerspective." It apparently seems fine with the IDE because it recognized the function for whatever reason, but when I go to build it, I get a 2001 Link error with it.

I've linked to the sfml window and system static libraries. I'm using the code from a sample project window that comes with the download.

Code: [Select]

SFML_Tests.obj : error LNK2001: unresolved external symbol _gluPerspective@32

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Linker error
« Reply #1 on: March 05, 2011, 09:11:55 am »
You need to link to glu32.lib.
Laurent Gomila - SFML developer

Azure Eyes

  • Newbie
  • *
  • Posts: 2
    • View Profile
Linker error
« Reply #2 on: March 06, 2011, 12:58:29 am »
That worked. Thanks.

 

anything