I'm trying to set up CGAL in Nvidia's Nsight Eclipse studio (Eclipse CDT). I don't plan on using it with CUDA, however I will need to use it for another part of a project that I am working on.
The error I am getting is this:
/home/me/work/x64_linux/cgal/include/CGAL/GMP/Gmpq_type.h:62:
undefined reference to `__gmpq_init'
This is followed by several other identical errors regarding gmpq. I think it's a linking issue, but as far as I am aware, I'm not sure where I went wrong. My other dependencies link fine. I installed CGAL through apt-get, and followed the set-up instructions given in the manual. Perhaps I went wrong somewhere there, but long story short, I'm pretty lost in regards to getting this to work! Any help / tips are appreciated!
EDIT: Here is the solution, for anyone in the future that might stumble across this question.
For some reason, the IDE was referencing the library incorrectly, despite my inputs being correct. I simply opened a new project and migrated my files over. Adding libraries follows the standard procedure in Eclipse: Go to Project Properties -> Paths and Symbols. Add the path to the directory the library is located under to library paths, and add the library name to libraries.
Here is the solution, for anyone in the future that might stumble across this question.
For some reason, the IDE was referencing the library incorrectly, despite my inputs being correct. I simply opened a new project and migrated my files over. Adding libraries follows the standard procedure in Eclipse: Go to Project Properties -> Paths and Symbols. Add the path to the directory the library is located under to library paths, and add the library name to libraries. If you need clarification, please ask.