libxml++/libxml++.h:没有这样的文件或目录

libxml++/libxml++.h: No such file or directory

本文关键字:libxml++ 文件      更新时间:2023-10-16

我正在使用ubuntu 12.4 g++我正在开发libxml++库我已经在程序中包含了这个库,但我收到一个错误,说

libxml++/libxml++.h: No such file or directory

我也尝试过使用g++ main.cc -o main pkg-config --cflags --libs libxml++-2.6进行编译,但它不起作用。我已经使用sudo apt-get install libxml++安装了最新的库。

在为libxml编译时,我们必须使用这些选项。pkg-config --cflags --libs libxml++-2.6这应该是单引号/背景符号("`",重音符(。

所以命令应该是这样的。

$ g++ main.cc -o program `pkg-config --cflags --libs libxml++-2.6`

或者经历一次。http://developer.gnome.org/libxml++/稳定/