且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法打开文件“glew32.lib"

更新时间:2022-10-15 15:46:20

您可以下载二进制包 (32 位64 bit) 并在 lib 文件夹中找到 glew32.lib 的已编译版本,并且都包含在内?:)>

在您的 OpenGL 项目中打开 Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies -> 添加 glew32.lib.

此外,您必须在源代码中包含 #include ;为此,将路径添加到您的 glew 文件夹:项目 -> 属性 -> 配置属性 -> 常规 -> VC++ 目录 -> 包含目录和库目录;

I have downloaded glew-1.9.0.zip built the projects under C:\glew-1.9.0\build\vc6 and C:\glew-1.9.0\build\vc10 and am unable to build after setting visual studio's paths to the glew include and lib paths. The lib directory does NOT have glew32.lib after building glew. What must I do in order to be able to build an opengl project?

You could download binary pack (32 bit or 64 bit) and find already compiled version of glew32.lib in lib folder and all includes?:)

In your OpenGL project open Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies -> add glew32.lib.

Also you must include #include <GL/glew.h> in your sources; For that add path to your glew folder: Project -> Properties -> Configuration Properies -> General -> VC++ Directories -> Include Directories and Library Directories;