VS2010 wants glut32.lib instead of freeglut.lib
Hi

I am trying to build my cuda code using VS2010. I am getting the error:
LINK : fatal error LNK1104: cannot open file 'glut32.lib'

In the Properties->Linker->Input->Additional_Dependencies section I have the libraries:
cudart.lib;freeglut.lib;glew32.lib; ....
which is what the SDK examples have.

Why is it trying to use glut32.lib instead of freeglut.lib?

cheers
steve
Hi



I am trying to build my cuda code using VS2010. I am getting the error:

LINK : fatal error LNK1104: cannot open file 'glut32.lib'



In the Properties->Linker->Input->Additional_Dependencies section I have the libraries:

cudart.lib;freeglut.lib;glew32.lib; ....

which is what the SDK examples have.



Why is it trying to use glut32.lib instead of freeglut.lib?



cheers

steve

#1
Posted 04/28/2012 12:13 PM   
When I've had this problem in the past, it's because I included <GL/glut.h>. If you instead include <GL/freeglut.h>, it should look for the appropriate lib file.
When I've had this problem in the past, it's because I included <GL/glut.h>. If you instead include <GL/freeglut.h>, it should look for the appropriate lib file.

#2
Posted 05/02/2012 11:55 PM   
Scroll To Top