I would like to use OpenGl in Visual Studio 2010. The following problem: "error LNK1104: data" GIU32.lib OpenGL32.lib freeglut.lib glut32.lib "could not be omitted"
I read a lot of tutorials, but they do not help me :-(. The lib datasets are located in "C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v7.0a \ lib". The header datasets are in "C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v7.0a \ Include \ gl "The dll dataset is located in the folder" C: \ Windows \ SysWOW64 "
I am using Windows 7 Professional 64Bit.
I put "GIU32.lib OpenGL32.lib freeglut.lib glut32.lib" in Project> Properties> Linker> Input.
This is what you need to do.
Get GLUT for Windows (OpenGL Utility Toolkit) from the Nate Robins webpage . I put it on drive C. The current documentation for GLUT tells you to enter the glut project project folder and build the glut.dsw Visual Studio project. This is a bit misleading since there is no glut.dsw file and all the dll, lib etc files you need are already there! So don’t worry about it, just download it.
Create a Visual Studio project, such as a new console application. For Windows XP, paste the glut32.dll file in: C: \ Windows \ System32. On Windows 7, put the glut32.dll file in the C: \ Windows \ SysWOW64 folder.
C/++ → → Include glut.h. C:\glut-3.7.6-bin\
Linker → General → Additional Library Directories , C:\glut-3.7.6-bin\
Linker → Input → Additional Dependencies "glut32.lib".
. , Windows Intel . .
. , , "GIU32.lib OpenGL32.lib freeglut.lib glut32.lib", , , .
";" ( Linker > Input). , , , .
, "GIU32.lib; OpenGL32.lib; freeglut.lib; glut32.lib".
, . lib (, VS 2010 , ).
DLL BOTH system32 syswow64
See here: http://www.james-bennet.com/2011/10/using-glut-under-visual-studio-2010/
Has a HOWTO, including a screenshot of the linker options you need to set.