소스 검색

libgis: improve version mismatch compilation warning (modified patch from trac https://trac.osgeo.org/grass/ticket/1467)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60193 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 년 전
부모
커밋
af84346e77
1개의 변경된 파일8개의 추가작업 그리고 5개의 파일을 삭제
  1. 8 5
      lib/gis/gisinit.c

+ 8 - 5
lib/gis/gisinit.c

@@ -48,8 +48,10 @@ void G__gisinit(const char *version, const char *pgm)
     G_set_program_name(pgm);
 
     if (strcmp(version, GIS_H_VERSION) != 0)
-	G_fatal_error(_("Incompatible library version for module. "
-			"You need to rebuild GRASS or untangle multiple installations."));
+	G_fatal_error(_("Module built against version %s but "
+			"trying to use version %s."
+			"You need to rebuild GRASS GIS or untangle multiple installations."),
+                        version, GIS_H_VERSION);
 
     /* Make sure location and mapset are set */
     G_location_path();
@@ -80,9 +82,10 @@ void G__no_gisinit(const char *version)
 	return;
 
     if (strcmp(version, GIS_H_VERSION) != 0)
-	G_fatal_error(_("Incompatible library version for module. "
-			"You need to rebuild GRASS or untangle multiple installations."));
-
+	G_fatal_error(_("Module built against version %s but "
+			"trying to use version %s."
+			"You need to rebuild GRASS GIS or untangle multiple installations."),
+                        version, GIS_H_VERSION);
     gisinit();
 }