SDL_and_opengl_2.cpp `sdl2-config --libs --cflags` -lGL -lGLU50_SDL_and_opengl_2.cpp:7:20: fatal error: GL\GLU.h: Aucun fichier ou dossier de ce type
#include <GL\GLU.h>
我想复制教程(精灵渲染),使用OpenGL版本>= 3.3。error: ‘GL_GEOMETRY_SHADER’ was not declared in this scope版本glxinfo | grep -i“➜”client glx version string: 1.4 Version: 17.1.
在创建一个项目时,在我的项目文件夹中保存Glu.h、Glu32.lib和Glu32.dll,并确保它与我的.cpp文件位于相同的目录中,然后我将Glu.h添加到我的头文件中,将Glu32.lib添加到资源文件中,并在我的源文件夹中包含Glu.h,因为在我的源文件夹中#include“Glu.h”,我得到了一个错误:Glu32.dll is missing。