gpt4 book ai didi

c++ - 在 Linux 中执行 C++ makefile 时遇到问题(在 mac 上工作正常)

转载 作者:太空宇宙 更新时间:2023-11-04 13:00:00 25 4
gpt4 key购买 nike

当我运行 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`

这是我编写的一个使用过剩库的 C++ 程序。我安装了那些,但我不明白还缺少什么,因为还安装了依赖项。

最佳答案

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

关于c++ - 在 Linux 中执行 C++ makefile 时遇到问题(在 mac 上工作正常),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34321964/

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