I've been working on a little bit of code recently using the WIN32 API, GL.h, and GLU.h. I recently figured out that if I define a variable with the type GLchar my Visual Studio will give me an error saying that GLchar is an undefined identifier. Here's the error:
Severity Code Description Project File Line Suppression State Details
Error (active) E0020 identifier "GLchar" is undefined RendGL C:\Dev\RendGL\GLFunc.h 13`
Here's an MRE:
#include <Windows.h>
#include <GL/GL.h>
#include <GL/GLU.h>
int main() {
const GLchar* string = "Example";
return 0;
}
This code would result in:
Severity Code Description Project File Line Suppression State Details
Error (active) E0020 identifier "GLchar" is undefined RendGL C:\Dev\RendGL\GLFunc.h 13
I've scoured the internet for an answer, but haven't been able to find anything. Most of the posts that detail similar issues to mine have answers telling them to include a loading library or utility library before their GL, but I'm not using a loading library or utility library.