成功安装了猛禽(librdf.org)之后,我运行g++ test.cpp来编译。但去找raptor2.h: No such file or directory。
因此,我将/usr/include/raptor2/raptor2.h复制到/usr/include/raptor2.h,并将上述错误排除。但是出现了一个新的错误:undefined reference to `raptor_new_world_internal'。
谁能告诉我什么是错的,谢谢..。环境: ubuntu 12.04。
发布于 2015-01-21 06:52:01
与其复制头文件,不如尝试
#include <raptor2/raptor2.h>
并使用g++ test.cpp -lraptor2编译。您需要针对库进行链接,以便能够使用它。
https://stackoverflow.com/questions/28061183
复制相似问题