Visual Studio 2010中的OpenGL配置 [英] OpenGL config in Visual Studio 2010

查看:125
本文介绍了Visual Studio 2010中的OpenGL配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual Studio 2010中使用OpenGl.出现以下问题:错误LNK1104:数据"GIU32.lib OpenGL32.lib freeglut.lib glut32.lib"无法被接受"

i would like to use OpenGl in Visual Studio 2010. Following Problem: "error LNK1104: Data "GIU32.lib OpenGL32.lib freeglut.lib glut32.lib" could not be oppend"

我阅读了许多教程,但它们对我没有帮助:-(. lib数据集位于"C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0a \ lib"中. 标头数据集位于"C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0a \ Include \ gl"中 dll数据集位于"C:\ Windows \ SysWOW64"

I read many Tutorials but they don´t help me :-(. The lib data sets are in "C:\Program Files(x86)\Microsoft SDKs\Windows\v7.0a\lib". The header data sets are in "C:\Program Files(x86)\Microsoft SDKs\Windows\v7.0a\Include\gl" The dll data sets are in "C:\Windows\SysWOW64"

我使用Windows 7 Professional 64Bit.

I Use Windows 7 Professional 64Bit.

我将"GIU32.lib OpenGL32.lib freeglut.lib glut32.lib"放在项目">属性">链接器">输入"上.

I put "GIU32.lib OpenGL32.lib freeglut.lib glut32.lib" on Project > Properties > Linker > Input.

推荐答案

您的错误消息列出了同一错误中所有丢失的文件. 这意味着您没有正确设置依赖项,因为链接器搜索了文件"GIU32.lib OpenGL32.lib freeglut.lib glut32.lib",该文件当然不存在.

Your error message lists all missing files in the same error. That means you didn't set your dependencies correctly, because the linker searched for the file "GIU32.lib OpenGL32.lib freeglut.lib glut32.lib", which doesn't exist, of course.

文件名必须用;"分隔在附加依赖项部分中(在链接器>输入下). 或者,如果您通过从下拉菜单中选择来使用编辑菜单,则每个依赖项都必须在新行中.

The file names have to be separated by ";" in the Additional Dependencies section (under Linker > Input). Or, if you use the edit menu by choosing it from the drop-down selection, each dependency has to be in a new line.

因此,您必须编写"GIU32.lib; OpenGL32.lib; freeglut.lib; glut32.lib".

So you have to write "GIU32.lib;OpenGL32.lib;freeglut.lib;glut32.lib".

这篇关于Visual Studio 2010中的OpenGL配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆