问题
I am using
#include <gl/freeglut.h>
but getting
"fatal error: GLUT/freeglut.h file not found
"
** I tried reinstall "brew install glew freeglut" and also "
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glut.h>
#endif"
I also tried:
#include <GL/freeglut.h>
but none of them worked...
来源:https://stackoverflow.com/questions/65655868/fatal-error-glut-freeglut-h-file-not-found-catalina