I've been searching the web and cannot find an answer to this particular problem:
Here is some code:
geo::GreatCircleArc* gca = new geo::GreatCircleArc_Impl(LA, NYC, 0.0);
gca->calculateArcLength(gca);
gca->calculateArcLength(gca, NAUTICAL_MILES);
The classes with namespace geo are from the shared library. The enum NAUTICAL_MILES is also from the shared library, defined in an H file. That H file also has a namespace of geo (but separate from where I declare classes).
The IDE eclipse has no problem with this (no red squiggly line) when it's a clean build. When I build, I get the error 'NAUTICAL_MILES' was not declared in this scope. (and then the red squiggly line). It appears to be an issue with the linking I would think. When I try to use the namespace geo::, only the class members "pop up" as suggestions.
I'm a java programmer trying to become as proficient in c++ as I am in java. This is why I depend on the hints and suggestions of the ide.
Any ideas of what is going on here?
The pure virtual class GreatCircleArc and its implementation GreatCircleArc_Impl are declared in separate folders but use the same namespace. I'm trying to replicate the concept of a java interface and its implementation.
Any help would be appreciated.