nzjrs / osm-gps-map

A Gtk+ Widget for Displaying OpenStreetMap tiles LOOKING FOR A NEW MAINTAINER
http://nzjrs.github.com/osm-gps-map
GNU General Public License v2.0
135 stars 58 forks source link

Fix "Unknown namespace for symbol" warnings #74

Closed dreadnought closed 3 years ago

dreadnought commented 3 years ago

This fixes the warnings reported in #40 by renaming everything that started with OSM_IS_GPS_MAP_X to OSM_GPS_MAP_IS_X, so that it matches the OsmGpsMap prefix.

osm-gps-map-osd.h:30: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_OSD': Unknown namespace for symbol 'OSM_IS_GPS_MAP_OSD'
osm-gps-map-osd.h:31: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_OSD_CLASS': Unknown namespace for symbol 'OSM_IS_GPS_MAP_OSD_CLASS'
osm-gps-map-track.h:34: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_TRACK': Unknown namespace for symbol 'OSM_IS_GPS_MAP_TRACK'
osm-gps-map-track.h:35: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_TRACK_CLASS': Unknown namespace for symbol 'OSM_IS_GPS_MAP_TRACK_CLASS'
osm-gps-map-polygon.h:33: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_POLYGON': Unknown namespace for symbol 'OSM_IS_GPS_MAP_POLYGON'
osm-gps-map-polygon.h:34: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_POLYGON_CLASS': Unknown namespace for symbol 'OSM_IS_GPS_MAP_POLYGON_CLASS'
osm-gps-map-image.h:34: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_IMAGE': Unknown namespace for symbol 'OSM_IS_GPS_MAP_IMAGE'
osm-gps-map-image.h:35: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_IMAGE_CLASS': Unknown namespace for symbol 'OSM_IS_GPS_MAP_IMAGE_CLASS'
osm-gps-map-widget.h:36: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP': Unknown namespace for symbol 'OSM_IS_GPS_MAP'
osm-gps-map-widget.h:37: Warning: OsmGpsMap: symbol='OSM_IS_GPS_MAP_CLASS': Unknown namespace for symbol 'OSM_IS_GPS_MAP_CLASS'

The mapviewer C example and my python application work without modification, so it shouldn't effect the exposed interface. The mapviewer.py fails to show the map, but that seems be a different issue.

johnny-bit commented 3 years ago

Tested, works :)

Thanks!