Can't build without INCLUDE_OGR_FRMTS = YES (RE: [gdal-dev] GDAL/OGR
1.6.0 Beta 1 Available)
Peng Gao
pgao at esri.com
Thu Oct 30 19:41:09 EDT 2008
Frank,
I am getting unresolved symbols without "INCLUDE_OGR_FRMTS = YES". I am
building
GDAL 1.6.0 Beta 1 using VS2008 on Windows XP.
Is there a way to keep building GDAL 1.6.0 without OGR? The release dll
size difference is 3.6M (gdal15.dll without OGR) vs. 4.8M (gdal16dev.dll
with OGR).
Thanks,
Gao, Peng
link /nologo /dll /INCLUDE:_OGRFeatureStylePuller
/INCLUDE:_OSRValidate
/INCLUDE:_OPTGetProjectionMethods /INCLUDE:_OGR_G_GetPointCount
/INCLUDE:_GDA
LSimpleImageWarp at 36 /INCLUDE:_GDALReprojectImage at 48
/INCLUDE:_GDALComputeMedia
nCutPCT at 32 /INCLUDE:_GDALDitherRGB2PCT at 28
/INCLUDE:_OCTNewCoordinateTransforma
tion at 8 port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogr.lib
C:\A
rcGIS\SharedArcGIS\DepFiles\lib\Kakadu\kdu60.lib
/LIBPATH:C:\GDAL\codec\hdf4\dl
l Ws2_32.lib C:\GDAL\codec\DSDK\lib\Release_md\lti_dsdk_dll.lib
advapi32.lib u
ser32.lib
C:/ArcGIS/SharedArcGIS/DepFiles/Lib/Curl/libcurl.li
b gcore\Version.res /out:gdal16.dll /implib:gdal_i.lib
Creating library gdal_i.lib and object gdal_i.exp
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRGeometry * __thiscall OGRLayer::GetSpatialFilter(void)"
(?GetSpatialFilt
er at OGRLayer@@UAEPAVOGRGeometry@@XZ)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual v
oid __thiscall OGRLayer::SetSpatialFilter(class OGRGeometry *)"
(?SetSpatialFilt
er at OGRLayer@@UAEXPAVOGRGeometry@@@Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual v
oid __thiscall
OGRLayer::SetSpatialFilterRect(double,double,double,double)" (?Se
tSpatialFilterRect at OGRLayer@@UAEXNNNN at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::SetAttributeFilter(char const *)"
(?SetAttributeFilter at O
GRLayer@@UAEHPBD at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::SetNextByIndex(long)"
(?SetNextByIndex at OGRLayer@@UAEHJ at Z
)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRFeature * __thiscall OGRLayer::GetFeature(long)"
(?GetFeature at OGRLayer@@
UAEPAVOGRFeature@@J at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::SetFeature(class OGRFeature *)"
(?SetFeature at OGRLayer@@U
AEHPAVOGRFeature@@@Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::CreateFeature(class OGRFeature *)"
(?CreateFeature at OGRLa
yer@@UAEHPAVOGRFeature@@@Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::DeleteFeature(long)"
(?DeleteFeature at OGRLayer@@UAEHJ at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::GetFeatureCount(int)"
(?GetFeatureCount at OGRLayer@@UAEHH@
Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::GetExtent(class OGREnvelope *,int)"
(?GetExtent at OGRLayer
@@UAEHPAVOGREnvelope@@H at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
har const * __thiscall OGRLayer::GetInfo(char const *)"
(?GetInfo at OGRLayer@@UAEP
BDPBD at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::CreateField(class OGRFieldDefn *,int)"
(?CreateField at OGR
Layer@@UAEHPAVOGRFieldDefn@@H at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::SyncToDisk(void)" (?SyncToDisk at OGRLayer@@UAEHXZ)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::StartTransaction(void)"
(?StartTransaction at OGRLayer@@UAE
HXZ)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::CommitTransaction(void)"
(?CommitTransaction at OGRLayer@@U
AEHXZ)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRLayer::RollbackTransaction(void)"
(?RollbackTransaction at OGRLaye
r@@UAEHXZ)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
har const * __thiscall OGRLayer::GetFIDColumn(void)"
(?GetFIDColumn at OGRLayer@@UA
EPBDXZ)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
har const * __thiscall OGRLayer::GetGeometryColumn(void)"
(?GetGeometryColumn at OG
RLayer@@UAEPBDXZ)
gdalrasterize.obj : error LNK2019: unresolved external symbol "public:
virtual _
_thiscall OGRLayer::~OGRLayer(void)" (??1OGRLayer@@UAE at XZ) referenced in
functio
n "public: virtual void * __thiscall OGRLayer::`scalar deleting
destructor'(unsi
gned int)" (??_GOGRLayer@@UAEPAXI at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRLayer * __thiscall OGRDataSource::GetLayerByName(char const *)"
(?GetLay
erByName at OGRDataSource@@UAEPAVOGRLayer@@PBD at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRDataSource::DeleteLayer(int)"
(?DeleteLayer at OGRDataSource@@UAEH
H at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRLayer * __thiscall OGRDataSource::CreateLayer(char const *,class
OGRSpat
ialReference *,enum OGRwkbGeometryType,char * *)"
(?CreateLayer at OGRDataSource@@U
AEPAVOGRLayer@@PBDPAVOGRSpatialReference@@W4OGRwkbGeometryType@@PAPAD at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRLayer * __thiscall OGRDataSource::CopyLayer(class OGRLayer
*,char const
*,char * *)" (?CopyLayer at OGRDataSource@@UAEPAVOGRLayer@@PAV2 at PBDPAPAD@Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRLayer * __thiscall OGRDataSource::ExecuteSQL(char const *,class
OGRGeome
try *,char const *)"
(?ExecuteSQL at OGRDataSource@@UAEPAVOGRLayer@@PBDPAVOGRGeomet
ry@@0 at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual v
oid __thiscall OGRDataSource::ReleaseResultSet(class OGRLayer *)"
(?ReleaseResul
tSet at OGRDataSource@@UAEXPAVOGRLayer@@@Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRDataSource::SyncToDisk(void)"
(?SyncToDisk at OGRDataSource@@UAEHX
Z)
gdalrasterize.obj : error LNK2019: unresolved external symbol "public:
virtual _
_thiscall OGRDataSource::~OGRDataSource(void)"
(??1OGRDataSource@@UAE at XZ) refere
nced in function "public: virtual void * __thiscall
OGRDataSource::`scalar delet
ing destructor'(unsigned int)" (??_GOGRDataSource@@UAEPAXI at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRDataSource * __thiscall OGRSFDriver::CreateDataSource(char const
*,char
* *)" (?CreateDataSource at OGRSFDriver@@UAEPAVOGRDataSource@@PBDPAPAD at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual i
nt __thiscall OGRSFDriver::DeleteDataSource(char const *)"
(?DeleteDataSource at OG
RSFDriver@@UAEHPBD at Z)
gdalrasterize.obj : error LNK2001: unresolved external symbol "public:
virtual c
lass OGRDataSource * __thiscall OGRSFDriver::CopyDataSource(class
OGRDataSource
*,char const *,char * *)"
(?CopyDataSource at OGRSFDriver@@UAEPAVOGRDataSource@@PAV
2 at PBDPAPAD@Z)
gdalrasterize.obj : error LNK2019: unresolved external symbol "public:
virtual _
_thiscall OGRSFDriver::~OGRSFDriver(void)" (??1OGRSFDriver@@UAE at XZ)
referenced i
n function "public: virtual void * __thiscall OGRSFDriver::`scalar
deleting dest
ructor'(unsigned int)" (??_GOGRSFDriver@@UAEPAXI at Z)
gdal16.dll : fatal error LNK1120: 32 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN
\link.EXE"' : return code '0x460'
Stop.
More information about the gdal-dev
mailing list