I'm trying to compile a Hello Triangle exercise on OS X Yosemite. It compiles fine on my Ubuntu machine. It actually compiles fine on Yosemite but when I run it I get a Seg Fault. I'm new to OS X so am I not including something in the compilation? I'm using glfw
and glew
.
g++ main.cpp -I/usr/local/include -I/opt/X11/include -L/usr/local/lib -I/opt/X11/lib -w -std=c++11 -framework OpenGL -lglfw3 -lglew -o main
Aucun commentaire:
Enregistrer un commentaire