GeodeticGraticule linker issue with MinGW

classic Classic list List threaded Threaded
2 messages Options
jeladi jeladi
Reply | Threaded
Open this post in threaded view
|

GeodeticGraticule linker issue with MinGW

I am getting linker errors for both the osgEarth example applications that use GeodeticGraticule and my own osgEarth-based application.  The error is:

"undefined reference to osgEarth::Util::GeodeticGraticule::CameraData::~CameraData()"

If I do an 'nm GeodeticGraticule.cpp.obj' I get:

0000000000000cd0 T _ZN8osgEarth4Util17GeodeticGraticule10CameraDataD1Ev
0000000000000cd0 T _ZN8osgEarth4Util17GeodeticGraticule10CameraDataD2Ev

If I demangle those they both reference the CameraData destructor.  However, if I run nm on the temporary file objects.a generated while building osgearth_geodetic_graticule I get:

U _ZN8osgEarth4Util17GeodeticGraticule10CameraDataD1Ev

Anyone ever seen this before?  I am using the default cmake settings for osgEarth on MinGW with gcc 8.2.1.
jeladi jeladi
Reply | Threaded
Open this post in threaded view
|

Re: GeodeticGraticule linker issue with MinGW

This linker error does not occur on Linux, BTW.  I checked this morning and both the osgEarth example and my own application use GeodeticGraticule without a problem.