Hello, I’m having trouble including an external library into my project. I have the .cpp and .h files. No .lib or .a files. How do I go about including these into my project?
Cheers
Claude Hasler
Hello, I’m having trouble including an external library into my project. I have the .cpp and .h files. No .lib or .a files. How do I go about including these into my project?
Cheers
Claude Hasler
Since you only have the source files (.cpp, .h) you’ll need to compile those into a library (.so, .a).
You have 2 choices:
Personally I’d go with #1 but it’s your choice. If you go with option 1 and the library came with a Makefile (likely) then you can just create a standard Makefile project in Eclipse and point to that Makefile and that should be all you need to get it compiling.
Tim
Thanks, this worked