SFML community forums

Help => General => Topic started by: Azure Eyes on March 05, 2011, 03:50:58 am

Title: Linker error
Post by: Azure Eyes 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
Title: Linker error
Post by: Laurent on March 05, 2011, 09:11:55 am
You need to link to glu32.lib.
Title: Linker error
Post by: Azure Eyes on March 06, 2011, 12:58:29 am
That worked. Thanks.