[Qgis-developer] Name clash - GDAL vs GPX provider

Martin Dobias wonder.sk at gmail.com
Sat Dec 5 14:57:28 EST 2009


Hi all,

I've just stumpled upon a nasty problem with dynamic linking: I'm
getting a crash when trying to use GPX provider with current GDAL
trunk. The reason is that there's a new GTM driver for OGR. This
driver however uses the same "Track" and "Waypoint" class names as GPX
provider does in its code. When opening a GPX file in QGIS, virtual
destructors for these classes are overridden by the ones from the GTM
driver and causing crashes.

Can anybody confirm this problem? (I'm on Linux)
Any opinions how to cope with this? The simplest thing that comes to
my mind is to rename the classes in GPX provider, but maybe there's
some better solution...

Regards
Martin


More information about the Qgis-developer mailing list