我正在尝试使用 C 语言中的 VLFeat 库,如网站 http://www.vlfeat.org/gcc.html中给出的那样。
我下载并安装了库。我使用glnxa64
架构。图书馆位于/A/B/C/vlfeat-0.9.18
我的代码如下:
extern "C" {
#include <vl/generic.h>
#include <vl/sift.h>
}
int main (int argc, const char * argv[])
{
VL_PRINT ("Hello world!") ;
return 0;
}
我使用以下语句编译我的代码,
g++ main.cpp -o vlfeat-test -I/A/B/C/vlfeat-0.9.18 -L/A/B/C/vlfeat-0.9.18/bin/glnxa64/ -lvl
但是当我运行它时,我收到以下错误
./vlfeat-test: error while loading shared libraries: libvl.so: cannot open shared object file: No such file or directory