I am trying to run the HelloWorld program from VLFeat in Eclipse CDT in Ubuntu. The code is
extern "C" {
#include <vl/generic.h>
}
int main (int argc, const char * argv[]) {
VL_PRINT ("Hello world!") ;
return 0;
}
This shows Unresolved Inclusion error for the line #include . I can see the generic.h file in "/home/username/vlfeat-0.9.19/vl" folder. However, eclipse is not able to include this.
I have the following options in my project properties which must be related to this.
Project >Properties >C/C++ Build > GCC Compiler > Includes > Include Paths(-l) & Include files (-include)
Project >Properties >C/C++ Build > GCC Linker > Libraries > Libraries (-l) & Library Search Paths (-L)
What does each of these options mean? What is the purpose of these? And how should I fix my present issue?
I can run a normal cpp hello world program successfully without adding anything in the include paths or directories.
I had the same problem that you have!
Follow these instructions and your problem will probably be fixed.
Some notes:
Any doubt in the process just ask :)
For the first questions I will search for an anwser and I will edit this post soon with them. Good luck!