你好,
我有以下内容:#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/