PDA

View Full Version : How to Link glut to Qt



Mashkur
14th October 2012, 15:24
Hey guys . I am new to Qt Creator. I am writing my code using openGL and I don't know how link glut to Qt. I have glut library(glut32.lib) and header file(glut.h) but i don't know where to copy them so that i can create a link between Qt and Glut....Whenever I try to compile the code I get the following two errors. Please help me debugging these errors....
1):: error: cannot find -lglut
2):: error: collect2: ld returned 1 exit status

wysota
14th October 2012, 16:54
Use -L switch to point the linker to the directory where you placed the lib file.