我试图在Ubuntu 16.04.3。的C代码中使用VLFeat。在official instructions之后,我创建了一个测试文件:
extern "C"
{
#include <vlfeat/vl/svm.h>
}
int main (int argc, const char * argv[]) {
VL_PRINT ("Hello world!") ;
return 0;
}
从命令行中,我可以确认svm.h在vlfeat / vl中。然后我尝试
gcc main.cpp
但收到错误消息
main.cpp:3:27: fatal error: vlfeat/vl/svm.h: No such file or directory
关于如何在C代码中正确使用VLFeat的任何建议?谢谢。