[gdal-dev] problem in gdal-java compilation

ahmet temiz ahmettemiz88 at gmail.com
Wed Jul 14 03:26:38 EDT 2010


hello

as I tried to compile gdal-java, I received error message.


va-6-sun/include/linux -c gdal_wrap.cpp
cc1plus: warning: command line option "-Wdeclaration-after-statement"
is valid for C/ObjC but not for C++
gdal_wrap.cpp: In function ‘_jstring*
Java_org_gdal_gdal_gdalJNI_get_1Driver_1ShortName(JNIEnv*, _jclass*,
jlong)’:
gdal_wrap.cpp:4197: error: ‘GDALDriverShadow_get_ShortName’ was not
declared in this scope
gdal_wrap.cpp: In function ‘_jstring*
Java_org_gdal_gdal_gdalJNI_get_1Driver_1LongName(JNIEnv*, _jclass*,
jlong)’:
gdal_wrap.cpp:4214: error: ‘GDALDriverShadow_get_LongName’ was not
declared in this scope
gdal_wrap.cpp: In function ‘_jstring*
Java_org_gdal_gdal_gdalJNI_get_1Driver_1HelpTopic(JNIEnv*, _jclass*,
jlong)’:
gdal_wrap.cpp:4231: error: ‘GDALDriverShadow_get_HelpTopic’ was not
declared in this scope
gdal_wrap.cpp: In function ‘jlong
Java_org_gdal_gdal_gdalJNI_Driver_1CreateCopy(JNIEnv*, _jclass*,
jlong, _jstring*, jlong, jint, _jobject*, _jobject*)’:
gdal_wrap.cpp:4381: error: ‘sProgressInfo’ was not declared in this scope



how can the problem solved ?

regards


More information about the gdal-dev mailing list