我对Linux很陌生,在它的环境中工作。
在Ubuntu14.04上,我很难理解和安装用于C++的SNAP库。
我正在遵循这教程。
在SNAP目录中,我运行make all命令,它编译示例和头,当然,在测试示例运行顺利之后。
cd examples/graphgen
./graphgen -g:w -n:1000 -k:4 -p:0.1 -o:smallworld.txt此外,我用make run-all-tests编译测试中的测试,它们都通过了。
但我有这个问题。
我不会在某个地方安装lib和headers (例如。( /usr/include或/lib或/usr/lib…)。此示例仅在其目录中编译。
当我试图运行我的例子时,我会遇到如下错误
#include <Snap.h> :: error no such file or directory就像我说的,我是cmake和make的新手,所以我很乐意感谢您的帮助。
发布于 2015-07-20 10:51:12
将路径添加到标题(snap-core、snap-adv、glib-core、snap-exp)和对象文件Snap.o
例如:examples/graphgen/graphgen.cpp:
g++ graphgen.cpp ../../snap-core/Snap.o -I../../snap-core -I../../snap-adv -I../../glib-core -I../../snap-exphttps://askubuntu.com/questions/650488
复制相似问题