开发者

SFML - gluPerspective function not found

开发者 https://www.devze.com 2023-04-01 02:42 出处:网络
Out of a开发者_JAVA技巧ll of the functions which aren\'t referenced, my gluPerspective returns an error when I try to use it. I know it has nothing to do with syntax or human error: I\'ve been copy/pa

Out of a开发者_JAVA技巧ll of the functions which aren't referenced, my gluPerspective returns an error when I try to use it. I know it has nothing to do with syntax or human error: I've been copy/pasting the line of code used by it right out of an SFML tutorial.

I'm using QT Creator.

Could someone tell me why this may be the case, and if so what I could do about it? Do I need to reference a library to my qmake file?


A function not being referenced sounds like a linker error. Have you linked to the glu library?


I found the solution:

LIBS += -lglut -lGLU
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号