OpenGL: glad/glad.h: No such file or directory
## glad/glad.h: No such file or directory
```sh
/home/yubao/data/project/AIDevLib/useOpenGL/example.cpp:2:10: fatal error: glad/glad.h: No such file or directory
#include
^~~~~~~~~~~~~
compilation terminated.
```
Solution:
- Config Glad from https://glad.dav1d.de/
![image-20200606100421036](https://raw.githubusercontent.com/yubaoliu/assets/image/image-20200606100421036.png)
- Download .zip
- Copy these files: glad.c glad.h khrplatform.h ,into your projectm, like this
```sh
├── CMakeLists.txt
├── example.cpp
├── glad.c
└── include
└── glad
├── glad.h
└── khrplatform.h
```
No comments