首页 > 其他分享 >OpenGL header already included, remove this include, glad already provides it

OpenGL header already included, remove this include, glad already provides it

时间:2022-12-26 15:11:58浏览次数:143  
标签:already 头文件 OpenGL remove header test include

原因

#include <glad/glad.h>必须放在所有头文件之前,即使是引用包含#include <glad/glad.h>的头文件,也必须写在其它头文件前面。

 

例子

头文件test.h中引用了<glad/glad.h>,那么#include <glad/glad.h>必须写在其它#include前面。

而main.cpp引用了"test.h",那么#include “test.h”必须写在其它#include前面。

 

标签:already,头文件,OpenGL,remove,header,test,include
From: https://www.cnblogs.com/live41/p/17005856.html

相关文章