I am trying to add freeglut to my program but I didn't find any way to do that. In MacOs to add glut library and glu i had to compile from terminal with :
g++-9 -framework GLUT -framework OpenGL
My purpose was to add freeglut in order to use glutLeaveMainLoop() in my program. So I added the Library but i get this error:
Undefined symbols for architecture x86_64:
"_glutLeaveMainLoop"
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
I had the same errors when I tried compiling my program without adding -framework OpenGL -framework GLUT
Is it possible to compile with g++ using also freeglut ?