linux上的“ glm \ glm.hpp:没有这样的文件或目录”错误

时间:2019-09-17 14:43:19

标签: linux ubuntu glm-math

运行此命令:

g++ /workspace/2016FallCSE2022/Week15/glfw_examples/CarDriving2D/main.cpp -lGL -lglut -lGLEW -I/path/to/glm/headers

导致此错误:

In file included from /workspace/2016FallCSE2022/Week15/glfw_examples/CarDriving2D/GLSquare.h:9,
                 from /workspace/2016FallCSE2022/Week15/glfw_examples/CarDriving2D/CarDrivingGame.h:10,
                 from /workspace/2016FallCSE2022/Week15/glfw_examples/CarDriving2D/main.cpp:19:
/workspace/2016FallCSE2022/Week15/glfw_examples/CarDriving2D/Box2D.h:9:9: fatal error: glm\glm.hpp: No such file or directory
    9 | #include<glm\glm.hpp>
      |         ^~~~~~~~~~~~~
compilation terminated.

什么是错误,我该如何解决?

0 个答案:

没有答案