gpt4 book ai didi

linux - 过剩已经安装,仍然没有编译

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:08:14 27 4
gpt4 key购买 nike

我正在使用以下命令编译程序:

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 也支持该表示法,因此它可以跨平台工作。

关于linux - 过剩已经安装,仍然没有编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33708189/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com