简体   繁体   English

无法解析的外部符号_glGenBuffers错误

[英]unresolved external symbol _glGenBuffers error

I am trying to follow this tutorial: http://playcontrol.net/ewing/jibberjabber/opengl_vertex_buffer_object.html 我正在尝试遵循本教程: http : //playcontrol.net/ewing/jibberjabber/opengl_vertex_buffer_object.html

And I have received this error: unresolved external symbol _glGenBuffers 而且我收到了此错误:无法解析的外部符号_glGenBuffers

After having done some research I have found that Windows only supports OpenGL 1.1 unless drivers are installed. 经过一些研究,我发现除非安装了驱动程序,否则Windows仅支持OpenGL 1.1。 I have Intel HD Graphics with the latest drivers supporting OpenGL 2.1. 我的Intel HD Graphics具有支持OpenGL 2.1的最新驱动程序。 I have also read that glGenBuffers was made apart of OpenGL in version 1.5. 我还读到glGenBuffers是在1.5版中与OpenGL分离的。 I am not understand why I am getting these errors... 我不明白为什么会收到这些错误...

After running the driver check on Intel's website I got this message: 在Intel网站上运行驱动程序检查后,我收到以下消息:

Product Detected Intel® HD Graphics Current Driver Installed 8.15.10.2361 Your driver is current. 检测到的产品已安装的英特尔®HD图形当前驱动程序8.15.10.2361您的驱动程序是最新的。

I have heard of some external libraries that help with this (glee or glew), but I do not want to use more libraries, I simply want to fix this problem by using the version of OpenGL that my graphics card supports... 我听说过一些外部库可以帮助解决此问题(咯咯咯咯),但我不想使用更多库,我只是想通过使用显卡支持的OpenGL版本来解决此问题。

You have basically provided your own answer. 您基本上已经提供了自己的答案。 Windows indeed supports only OpenGL 1.1 entrypoints. Windows实际上仅支持OpenGL 1.1入口点。 This has nothing to do with whatever functionality your GPU/driver supports. 这与您的GPU /驱动程序支持的功能无关。

For anything in later versions of OpenGL you would either have to resort to loading them yourself via wglGetProcAddress (Bad idea) or by using something like GLEW . 对于更高版本的OpenGL中的任何内容,您要么不得不通过wglGetProcAddress(错误的想法)或使用类似GLEW的方式自己加载它们。 With GLEW you'll be able to easily query which extension are available and it takes a lot of pain out of the equation. 使用GLEW,您可以轻松查询可用的扩展名,这使您不费吹灰之力。

It's a very simple and small library and I would choose it any day over having to mess with this myself. 这是一个非常简单的小型图书馆,我每天都会选择它,而不必自己弄乱它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM