在Linux中执行C ++ makefile时遇到问题(在ma​​c上运行正常)

时间:2015-12-16 20:56:23

标签: c++ linux macos makefile glut

当我运行make时,我得到以下内容:

> make
g++ -g me.o -L/opt/PDmesa/Mesa-5.0.1/lib 
            -L/opt/PDmesa/GLUT-3.7/lib 
            -L/usr/X11R6/lib 
            -lglut -lGLU -lGL -lX11 -lXext -lXmu -lXi -lm 
            -o me

/usr/bin/ld: cannot find -lXmu
/usr/bin/ld: cannot find -lXi
collect2: error: ld returned 1 exit status
make: *** [me] Error 1`

我写的一个使用glut libs的c ++程序。我安装了这些,但我不明白还缺少了什么,因为还安装了依赖项。

1 个答案:

答案 0 :(得分:0)

虽然我已经安装了一些库,但我缺少-dev版本。 - 安德烈

相关问题