c++ - fatal error : libxml/xmlmemory. h:没有那个文件或目录

标签 c++ compiler-errors

任何人都可以向我解释该错误以及我应该如何解决它!?:

In file included from /home/jros/catkin_ws/src/kinectueye/include/MIXEDVISION/CModelStereoXml.h:6:0,
                 from /home/jros/catkin_ws/src/kinectueye/src/kinect_ueye.cpp:10:
/home/jros/catkin_ws/src/kinectueye/include/MIXEDVISION/CXml.h:6:31: fatal error: libxml/xmlmemory.h: No such file or directory
compilation terminated.

CModelStereoXml、CXml 和 xmlmemory 都是我在我的程序 kinect_ueye.cpp 中使用的库中的文件(所以我无法编辑它)。

最佳答案

它说 CXml.h 第 6 行是:

#include <libxml/xmlmemory.h>

但是 libxml/xmlmemory.h 不在您的包含路径中。包含路径在编译器命令行上使用 -I 选项设置。

错误是“致命的”,因为编译无法继续超过该点。

找出该文件的实际安装位​​置,并确保其 libxml 目录的路径在 -I 选项中。例如,如果它安装在 /opt/local/include/libxml/xmlmemory.h 中,那么您需要在命令行中使用 -I/opt/local/include

CModelStereoXml, CXml and xmlmemory all are files in a library (so I can't edit it)

只有编译后的代码位于您无法编辑的库(.a.la.so 文件)中. header 将位于其他地方。

关于c++ - fatal error : libxml/xmlmemory. h:没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24657017/

相关文章:

c++ - 将 ID2D1Effect 输出存储在 ID2D1Bitmap/Image 中以便稍后绘制?

c++ - 指向抽象模板基类的指针?

python3-config --ldflags 不包括 -lpython3.x

linux - fatal error : pthread/pthread_impl. h : No such file or directory #include <pthread/pthread_impl. h>

gcc - Makefile和gtk +的编译错误

compiler-errors - 动态(可分配)向量的 gfortran 编译器错误

c++ - 双向链表中的排序插入

c++ - 以下是未定义的行为吗?我 = 函数(我)

c++ - 为什么我不能通过模板参数声明一种类型的友元函数但可以使用别名

c# - 在存储库中使用 Include() 方法