C++ ERROR libxml++ 没有这样的文件或目录

标签 c++ ubuntu

你好,

我有以下内容:#include <libxml++/libxml++.h>当我编译它时说 fatal error: libxml++/libxml++.h.No such file or directory .我检查了目录:/usr/include/libxml++-2.6/libxml++,它是 libxml++.h。我哪里错了?为什么我会收到此错误?谢谢

编辑:

我确实包含了 g++ prg.cpp -o prg -I/usr/include/libxml++-2.6/现在我有了

error:fatal error: glibmm/ustring.h: No such file or directory

最佳答案

您应该使用 pkg-config 来获得正确的编译器选项。参见,例如: http://developer.gnome.org/libxml++/stable/

关于C++ ERROR libxml++ 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6014033/

相关文章:

c++ - 被调用类中的 OpenMP 临界区(不同于并行循环)

c++ - child 绕父轴而不是他自己的轴旋转

java - Apache flink(稳定版本1.6.2)无法工作

c++ - 当有人尝试在当前 .cpp 或 .h 文件中使用 STL 时显示错误(在 Visual Studio 中)

c++ - 使用正则表达式解析命令

docker - 从 Ubuntu 到 RaspberryPi 创建 Docker 机器时卡在 "Waiting for SSH to be available"

python - 如何使用 Pexpect 执行 root 命令?

shell - 有没有办法在运行脚本时自动输入?

c++ - 当为不存在的日期/时间设置 CreateWaitableTimer 时会发生什么?

linux - xdg-open 不打开牛仔裤