I created and installed a library called OhNet . After make install corresponding frame header files were installed under usr/local/include/ohNet . Now I want to use the library in my C ++ project (I use eclipse), but when I try to include some header files, eclipse cannot find the files. As far as I know, eclipse should look for header files in these directories (/ usr / include, / usr / local / include, ...) by default .... What do I need to do to use the library? I am new to C ++ and have not used third-party sources before.
Thanks.
- EDIT-- I just want to write a simple helloworld program to make sure that I have enabled the framework correctly. For this, I want to set the OpenHome::Net::DvDeviceStdStandard . see link ohNet C ++
Now I can include the header file using: #include <ohNet/OpenHome/Net/Core/DvDevice.h> This works great. But how can I create an object of type OpenHome::Net::DvDeviceStdStandard ? Now? Eclipse says that this type cannot be resolved. :(
#include <iostream> #include <ohNet/OpenHome/Net/Core/DvDevice.h> using namespace std; int main() { OpenHome::Net::DvDeviceStdStandard device; //type cannot be resolved cout << "!!!Hello World!!!" << endl; return 0; }
source share