过剩已经安装,仍然没有编译
glut already installed, still not compiling
我正在使用以下命令编译程序:
g++ main.cpp -o run -lglut -lm
并出现以下错误:
main.cpp:20:21: fatal error: GL\glut.h: No such file or directory
#include <GL\glut.h>
^
compilation terminated.
虽然已经安装了 glut:apt-get install freeglut3 freeglut3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
freeglut3 is already the newest version.
freeglut3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 367 not upgraded.
任何 !dea...
反斜杠“\”不是 linux 上的有效路径分隔符。您必须使用斜杠“/”。请注意,windows 也支持该表示法,因此它可以跨平台工作。
我正在使用以下命令编译程序:
g++ main.cpp -o run -lglut -lm
并出现以下错误:
main.cpp:20:21: fatal error: GL\glut.h: No such file or directory
#include <GL\glut.h>
^
compilation terminated.
虽然已经安装了 glut:apt-get install freeglut3 freeglut3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
freeglut3 is already the newest version.
freeglut3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 367 not upgraded.
任何 !dea...
反斜杠“\”不是 linux 上的有效路径分隔符。您必须使用斜杠“/”。请注意,windows 也支持该表示法,因此它可以跨平台工作。