[gdal-dev] RE:GDAL, WinCE dll error when using in my own simple project

Zermeno, Robert J CIV NAVAIR, 472100D robert.zermeno at navy.mil
Tue Jun 22 13:46:27 EDT 2010


Everyone,

When it comes to compiling WinCE in MSVC80, I get all of those error messages.  However, when I compile in EVC4.0 IDE, it will compile cleanly, but when I try to link the file, I would get the same exact error messages.  

Can someone tell me what files to use.  I have compiled both current SVN trunk and GDAL 1.4.0 versions.  For version most current, SVN Trunk, it is missing three files related to gtiff library and one ogr core file, ogr_geos_convert.h (I believe that is the name).  All I did was added the files from GDAL 1.4.0 to the SVN trunk (it will cleanly build with no errors but the ones metioned in first email with LNK2001 and LNK2019 errors.

Thanks,
Robert 


-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of gdal-dev-request at lists.osgeo.org
Sent: Tuesday, June 22, 2010 9:11
To: gdal-dev at lists.osgeo.org
Subject: gdal-dev Digest, Vol 73, Issue 47

Send gdal-dev mailing list submissions to
	gdal-dev at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/gdal-dev
or, via email, send a message with subject or body 'help' to
	gdal-dev-request at lists.osgeo.org

You can reach the person managing the list at
	gdal-dev-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of gdal-dev digest..."


Today's Topics:

   1. 	GDAL, WinCE dll error when using in my own simple project
      (Zermeno, Robert J CIV NAVAIR, 472100D)
   2. I am trying to run gdal_polygonize.py and I get the	following
      error: gdal.Polygonize() not available. (John Mitchell)


----------------------------------------------------------------------

Message: 1
Date: Tue, 22 Jun 2010 09:08:37 -0700
From: "Zermeno, Robert J CIV NAVAIR, 472100D"
	<robert.zermeno at navy.mil>
Subject: [gdal-dev] 	GDAL, WinCE dll error when using in my own simple
	project
To: <gdal-dev at lists.osgeo.org>
Message-ID:
	<F8A8A114E3F41D4D9157F1BECCA3BA91033897BC at nawechlkez02v.nadsuswe.nads.navy.mil>
	
Content-Type: text/plain; charset="us-ascii"

I hope someone has remembered the capability issues concerning WinCE and GDAL (since its not really being maintained right now).  My issue is I am able to use the provided MSVC++ 2005 gdal project files and build the project to obtain a gdalce_i.lib and gdalce.dll files.

I created two projects, one in EVC4.0 and MSVC++ 2005 IDE.  Both compilers have provided me with the following error when I try to statically link the DLL and use:

#include "gdal_priv.h"

...
GDALAllRegister();

I followed the building and installation guide from: http://www.gdal.org/wince.html, and it all works, but I get the following error messages when I try to use the DLL:

1>------ Build started: Project: WinCE_G, Configuration: Debug Pocket PC 
1>2003 (ARMV4) ------ Compiling...
1>cl : Command line warning D9035 : option 'GX' has been deprecated and 
1>will be removed in a future release cl : Command line warning D9025 : overriding '/GR-' with '/GR'
1>stdafx.cpp
1>Compiling...
1>cl : Command line warning D9035 : option 'GX' has been deprecated and 
1>will be removed in a future release cl : Command line warning D9025 : overriding '/GR-' with '/GR'
1>WinCE_G.cpp
1>Linking...
1>   Creating library Pocket PC 2003 (ARMV4)\Debug/WinCE_G.lib and 
1>object Pocket PC 2003 (ARMV4)\Debug/WinCE_G.exp WinCE_G.obj : error 
1>LNK2001: unresolved external symbol "public: virtual char const * 
1>__cdecl GDALMajorObject::GetDescription(void)const " 
1>(?GetDescription at GDALMajorObject@@UBAPBDXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual void __cdecl GDALMajorObject::SetDescription(char const *)" 
1>(?SetDescription at GDALMajorObject@@UAAXPBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual char * * __cdecl GDALMajorObject::GetMetadata(char const *)" 
1>(?GetMetadata at GDALMajorObject@@UAAPAPADPBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALMajorObject::SetMetadata(char * *,char 
1>const *)" (?SetMetadata at GDALMajorObject@@UAA?AW4CPLErr@@PAPADPBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual char const * __cdecl GDALMajorObject::GetMetadataItem(char 
1>const *,char const *)" 
1>(?GetMetadataItem at GDALMajorObject@@UAAPBDPBD0 at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALMajorObject::SetMetadataItem(char 
1>const *,char const *,char const *)" 
1>(?SetMetadataItem at GDALMajorObject@@UAA?AW4CPLErr@@PBD00 at Z)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALMajorObject::~GDALMajorObject(void)" 
1>(??1GDALMajorObject@@UAA at XZ) referenced in function "public: virtual 
1>void * __cdecl GDALMajorObject::`scalar deleting destructor'(unsigned 
1>int)" (??_GGDALMajorObject@@UAAPAXI at Z) WinCE_G.obj : error LNK2001: 
1>unresolved external symbol "protected: virtual enum CPLErr __cdecl 
1>GDALDataset::IBuildOverviews(char const *,int,int *,int,int *,int 
1>(__cdecl*)(double,char const *,void *),void *)" 
1>(?IBuildOverviews at GDALDataset@@MAA?AW4CPLErr@@PBDHPAHH1P6AHN0PAX at Z2@Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "protected: 
1>virtual enum CPLErr __cdecl GDALDataset::IRasterIO(enum 
1>GDALRWFlag,int,int,int,int,void *,int,int,enum GDALDataType,int,int 
1>*,int,int,int)" 
1>(?IRasterIO at GDALDataset@@MAA?AW4CPLErr@@W4GDALRWFlag@@HHHHPAXHHW4GDALD
1>ataType@@HPAHHHH at Z) WinCE_G.obj : error LNK2001: unresolved external 
1>symbol "public: virtual void __cdecl GDALDataset::FlushCache(void)" 
1>(?FlushCache at GDALDataset@@UAAXXZ) WinCE_G.obj : error LNK2001: 
1>unresolved external symbol "public: virtual char const * __cdecl 
1>GDALDataset::GetProjectionRef(void)" 
1>(?GetProjectionRef at GDALDataset@@UAAPBDXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALDataset::SetProjection(char const *)" 
1>(?SetProjection at GDALDataset@@UAA?AW4CPLErr@@PBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALDataset::GetGeoTransform(double *)" 
1>(?GetGeoTransform at GDALDataset@@UAA?AW4CPLErr@@PAN at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALDataset::SetGeoTransform(double *)" 
1>(?SetGeoTransform at GDALDataset@@UAA?AW4CPLErr@@PAN at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALDataset::AddBand(enum 
1>GDALDataType,char * *)" 
1>(?AddBand at GDALDataset@@UAA?AW4CPLErr@@W4GDALDataType@@PAPAD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual void * __cdecl GDALDataset::GetInternalHandle(char const *)" 
1>(?GetInternalHandle at GDALDataset@@UAAPAXPBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALDriver * __cdecl GDALDataset::GetDriver(void)" 
1>(?GetDriver at GDALDataset@@UAAPAVGDALDriver@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual char * * __cdecl GDALDataset::GetFileList(void)" 
1>(?GetFileList at GDALDataset@@UAAPAPADXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual int __cdecl GDALDataset::GetGCPCount(void)" 
1>(?GetGCPCount at GDALDataset@@UAAHXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual char const * __cdecl GDALDataset::GetGCPProjection(void)" 
1>(?GetGCPProjection at GDALDataset@@UAAPBDXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual struct GDAL_GCP const * __cdecl GDALDataset::GetGCPs(void)" 
1>(?GetGCPs at GDALDataset@@UAAPBUGDAL_GCP@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALDataset::SetGCPs(int,struct GDAL_GCP 
1>const *,char const *)" 
1>(?SetGCPs at GDALDataset@@UAA?AW4CPLErr@@HPBUGDAL_GCP@@PBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALDataset::AdviseRead(int,int,int,int,int,int,enum 
1>GDALDataType,int,int *,char * *)" 
1>(?AdviseRead at GDALDataset@@UAA?AW4CPLErr@@HHHHHHW4GDALDataType@@HPAHPAP
1>AD at Z) WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALDataset::CreateMaskBand(int)" 
1>(?CreateMaskBand at GDALDataset@@UAA?AW4CPLErr@@H at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALAsyncReader * __cdecl 
1>GDALDataset::BeginAsyncReader(int,int,int,int,void *,int,int,enum 
1>GDALDataType,int,int *,int,int,int,char * *)" 
1>(?BeginAsyncReader at GDALDataset@@UAAPAVGDALAsyncReader@@HHHHPAXHHW4GDAL
1>DataType@@HPAHHHHPAPAD at Z) WinCE_G.obj : error LNK2001: unresolved 
1>external symbol "public: virtual void __cdecl 
1>GDALDataset::EndAsyncReader(class GDALAsyncReader *)" 
1>(?EndAsyncReader at GDALDataset@@UAAXPAVGDALAsyncReader@@@Z)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALDataset::~GDALDataset(void)" 
1>(??1GDALDataset@@UAA at XZ) referenced in function "public: virtual void 
1>* __cdecl GDALDataset::`scalar deleting destructor'(unsigned int)" 
1>(??_GGDALDataset@@UAAPAXI at Z) WinCE_G.obj : error LNK2019: unresolved 
1>external symbol "public: virtual __cdecl 
1>GDALRasterBlock::~GDALRasterBlock(void)" (??1GDALRasterBlock@@UAA at XZ) 
1>referenced in function "public: virtual void * __cdecl 
1>GDALRasterBlock::`scalar deleting destructor'(unsigned int)" 
1>(??_GGDALRasterBlock@@UAAPAXI at Z) WinCE_G.obj : error LNK2019: 
1>unresolved external symbol "public: __cdecl 
1>GDALColorTable::GDALColorTable(enum GDALPaletteInterp)" 
1>(??0GDALColorTable@@QAA at W4GDALPaletteInterp@@@Z) referenced in 
1>function "public: void __cdecl GDALColorTable::`default constructor 
1>closure'(void)" (??_FGDALColorTable@@QAAXXZ) WinCE_G.obj : error 
1>LNK2001: unresolved external symbol "protected: virtual enum CPLErr 
1>__cdecl GDALRasterBand::IWriteBlock(int,int,void *)" 
1>(?IWriteBlock at GDALRasterBand@@MAA?AW4CPLErr@@HHPAX at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "protected: 
1>virtual enum CPLErr __cdecl GDALRasterBand::IRasterIO(enum 
1>GDALRWFlag,int,int,int,int,void *,int,int,enum GDALDataType,int,int)" 
1>(?IRasterIO at GDALRasterBand@@MAA?AW4CPLErr@@W4GDALRWFlag@@HHHHPAXHHW4GD
1>ALDataType@@HH at Z) WinCE_G.obj : error LNK2001: unresolved external 
1>symbol "public: virtual enum CPLErr __cdecl 
1>GDALRasterBand::FlushCache(void)" 
1>(?FlushCache at GDALRasterBand@@UAA?AW4CPLErr@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual char * * __cdecl GDALRasterBand::GetCategoryNames(void)" 
1>(?GetCategoryNames at GDALRasterBand@@UAAPAPADXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual double __cdecl GDALRasterBand::GetNoDataValue(int *)" 
1>(?GetNoDataValue at GDALRasterBand@@UAANPAH at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual double __cdecl GDALRasterBand::GetMinimum(int *)" 
1>(?GetMinimum at GDALRasterBand@@UAANPAH at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual double __cdecl GDALRasterBand::GetMaximum(int *)" 
1>(?GetMaximum at GDALRasterBand@@UAANPAH at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual double __cdecl GDALRasterBand::GetOffset(int *)" 
1>(?GetOffset at GDALRasterBand@@UAANPAH at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual double __cdecl GDALRasterBand::GetScale(int *)" 
1>(?GetScale at GDALRasterBand@@UAANPAH at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual char const * __cdecl GDALRasterBand::GetUnitType(void)" 
1>(?GetUnitType at GDALRasterBand@@UAAPBDXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum GDALColorInterp __cdecl 
1>GDALRasterBand::GetColorInterpretation(void)" 
1>(?GetColorInterpretation at GDALRasterBand@@UAA?AW4GDALColorInterp@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALColorTable * __cdecl 
1>GDALRasterBand::GetColorTable(void)" 
1>(?GetColorTable at GDALRasterBand@@UAAPAVGDALColorTable@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::Fill(double,double)" 
1>(?Fill at GDALRasterBand@@UAA?AW4CPLErr@@NN at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::SetCategoryNames(char * 
1>*)" (?SetCategoryNames at GDALRasterBand@@UAA?AW4CPLErr@@PAPAD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::SetNoDataValue(double)" 
1>(?SetNoDataValue at GDALRasterBand@@UAA?AW4CPLErr@@N at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::SetColorTable(class 
1>GDALColorTable *)" 
1>(?SetColorTable at GDALRasterBand@@UAA?AW4CPLErr@@PAVGDALColorTable@@@Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::SetColorInterpretation(enum GDALColorInterp)" 
1>(?SetColorInterpretation at GDALRasterBand@@UAA?AW4CPLErr@@W4GDALColorInt
1>erp@@@Z) WinCE_G.obj : error LNK2001: unresolved external symbol 
1>"public: virtual enum CPLErr __cdecl 
1>GDALRasterBand::SetOffset(double)" 
1>(?SetOffset at GDALRasterBand@@UAA?AW4CPLErr@@N at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::SetScale(double)" 
1>(?SetScale at GDALRasterBand@@UAA?AW4CPLErr@@N at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::SetUnitType(char const *)" 
1>(?SetUnitType at GDALRasterBand@@UAA?AW4CPLErr@@PBD at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::GetStatistics(int,int,double *,double *,double 
1>*,double *)" 
1>(?GetStatistics at GDALRasterBand@@UAA?AW4CPLErr@@HHPAN000 at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::ComputeStatistics(int,double *,double *,double 
1>*,double *,int (__cdecl*)(double,char const *,void *),void *)" 
1>(?ComputeStatistics at GDALRasterBand@@UAA?AW4CPLErr@@HPAN000P6AHNPBDPAX@
1>Z2 at Z) WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::SetStatistics(double,double,double,double)" 
1>(?SetStatistics at GDALRasterBand@@UAA?AW4CPLErr@@NNNN at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::ComputeRasterMinMax(int,double *)" 
1>(?ComputeRasterMinMax at GDALRasterBand@@UAA?AW4CPLErr@@HPAN at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual int __cdecl GDALRasterBand::HasArbitraryOverviews(void)" 
1>(?HasArbitraryOverviews at GDALRasterBand@@UAAHXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual int __cdecl GDALRasterBand::GetOverviewCount(void)" 
1>(?GetOverviewCount at GDALRasterBand@@UAAHXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALRasterBand * __cdecl 
1>GDALRasterBand::GetOverview(int)" 
1>(?GetOverview at GDALRasterBand@@UAAPAV1 at H@Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALRasterBand * __cdecl 
1>GDALRasterBand::GetRasterSampleOverview(int)" 
1>(?GetRasterSampleOverview at GDALRasterBand@@UAAPAV1 at H@Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::BuildOverviews(char const 
1>*,int,int *,int (__cdecl*)(double,char const *,void *),void *)" 
1>(?BuildOverviews at GDALRasterBand@@UAA?AW4CPLErr@@PBDHPAHP6AHN0PAX at Z2@Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::AdviseRead(int,int,int,int,int,int,enum 
1>GDALDataType,char * *)" 
1>(?AdviseRead at GDALRasterBand@@UAA?AW4CPLErr@@HHHHHHW4GDALDataType@@PAPA
1>D at Z) WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl 
1>GDALRasterBand::GetHistogram(double,double,int,int *,int,int,int 
1>(__cdecl*)(double,char const *,void *),void *)" 
1>(?GetHistogram at GDALRasterBand@@UAA?AW4CPLErr@@NNHPAHHHP6AHNPBDPAX at Z2@Z
1>) WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::GetDefaultHistogram(double 
1>*,double *,int *,int * *,int,int (__cdecl*)(double,char const *,void 
1>*),void *)" 
1>(?GetDefaultHistogram at GDALRasterBand@@UAA?AW4CPLErr@@PAN0PAHPAPAHHP6AH
1>NPBDPAX at Z4@Z) WinCE_G.obj : error LNK2001: unresolved external symbol 
1>"public: virtual enum CPLErr __cdecl 
1>GDALRasterBand::SetDefaultHistogram(double,double,int,int *)" 
1>(?SetDefaultHistogram at GDALRasterBand@@UAA?AW4CPLErr@@NNHPAH at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALRasterAttributeTable const * __cdecl 
1>GDALRasterBand::GetDefaultRAT(void)" 
1>(?GetDefaultRAT at GDALRasterBand@@UAAPBVGDALRasterAttributeTable@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::SetDefaultRAT(class 
1>GDALRasterAttributeTable const *)" 
1>(?SetDefaultRAT at GDALRasterBand@@UAA?AW4CPLErr@@PBVGDALRasterAttributeT
1>able@@@Z) WinCE_G.obj : error LNK2001: unresolved external symbol 
1>"public: virtual class GDALRasterBand * __cdecl 
1>GDALRasterBand::GetMaskBand(void)" 
1>(?GetMaskBand at GDALRasterBand@@UAAPAV1 at XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual int __cdecl GDALRasterBand::GetMaskFlags(void)" 
1>(?GetMaskFlags at GDALRasterBand@@UAAHXZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual enum CPLErr __cdecl GDALRasterBand::CreateMaskBand(int)" 
1>(?CreateMaskBand at GDALRasterBand@@UAA?AW4CPLErr@@H at Z)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALRasterBand::~GDALRasterBand(void)" 
1>(??1GDALRasterBand@@UAA at XZ) referenced in function "public: virtual 
1>void * __cdecl GDALRasterBand::`scalar deleting destructor'(unsigned 
1>int)" (??_GGDALRasterBand@@UAAPAXI at Z) WinCE_G.obj : error LNK2001: 
1>unresolved external symbol "protected: virtual enum CPLErr __cdecl 
1>GDALAllValidMaskBand::IReadBlock(int,int,void *)" 
1>(?IReadBlock at GDALAllValidMaskBand@@MAA?AW4CPLErr@@HHPAX at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual class GDALRasterBand * __cdecl 
1>GDALAllValidMaskBand::GetMaskBand(void)" 
1>(?GetMaskBand at GDALAllValidMaskBand@@UAAPAVGDALRasterBand@@XZ)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual int __cdecl GDALAllValidMaskBand::GetMaskFlags(void)" 
1>(?GetMaskFlags at GDALAllValidMaskBand@@UAAHXZ)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALAllValidMaskBand::~GDALAllValidMaskBand(void)" 
1>(??1GDALAllValidMaskBand@@UAA at XZ) referenced in function "public: 
1>virtual void * __cdecl GDALAllValidMaskBand::`scalar deleting 
1>destructor'(unsigned int)" (??_GGDALAllValidMaskBand@@UAAPAXI at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "protected: 
1>virtual enum CPLErr __cdecl 
1>GDALNoDataMaskBand::IReadBlock(int,int,void *)" 
1>(?IReadBlock at GDALNoDataMaskBand@@MAA?AW4CPLErr@@HHPAX at Z)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALNoDataMaskBand::~GDALNoDataMaskBand(void)" 
1>(??1GDALNoDataMaskBand@@UAA at XZ) referenced in function "public: 
1>virtual void * __cdecl GDALNoDataMaskBand::`scalar deleting 
1>destructor'(unsigned int)" (??_GGDALNoDataMaskBand@@UAAPAXI at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "protected: 
1>virtual enum CPLErr __cdecl 
1>GDALNoDataValuesMaskBand::IReadBlock(int,int,void *)" 
1>(?IReadBlock at GDALNoDataValuesMaskBand@@MAA?AW4CPLErr@@HHPAX at Z)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl 
1>GDALNoDataValuesMaskBand::~GDALNoDataValuesMaskBand(void)" 
1>(??1GDALNoDataValuesMaskBand@@UAA at XZ) referenced in function "public: 
1>virtual void * __cdecl GDALNoDataValuesMaskBand::`scalar deleting 
1>destructor'(unsigned int)" (??_GGDALNoDataValuesMaskBand@@UAAPAXI at Z)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALDriver::~GDALDriver(void)" (??1GDALDriver@@UAA at XZ) 
1>referenced in function "public: virtual void * __cdecl 
1>GDALDriver::`scalar deleting destructor'(unsigned int)" 
1>(??_GGDALDriver@@UAAPAXI at Z) WinCE_G.obj : error LNK2019: unresolved 
1>external symbol "public: virtual __cdecl 
1>GDALDriverManager::~GDALDriverManager(void)" 
1>(??1GDALDriverManager@@UAA at XZ) referenced in function "public: virtual 
1>void * __cdecl GDALDriverManager::`scalar deleting 
1>destructor'(unsigned int)" (??_GGDALDriverManager@@UAAPAXI at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual int __cdecl GDALAsyncReader::LockBuffer(double)" 
1>(?LockBuffer at GDALAsyncReader@@UAAHN at Z)
1>WinCE_G.obj : error LNK2001: unresolved external symbol "public: 
1>virtual void __cdecl GDALAsyncReader::UnlockBuffer(void)" 
1>(?UnlockBuffer at GDALAsyncReader@@UAAXXZ)
1>WinCE_G.obj : error LNK2019: unresolved external symbol "public: 
1>virtual __cdecl GDALAsyncReader::~GDALAsyncReader(void)" 
1>(??1GDALAsyncReader@@UAA at XZ) referenced in function "public: virtual 
1>void * __cdecl GDALAsyncReader::`scalar deleting destructor'(unsigned 
1>int)" (??_GGDALAsyncReader@@UAAPAXI at Z) WinCE_G.obj : error LNK2019: 
1>unresolved external symbol GDALAllRegister referenced in function 
1>"long __cdecl WndProc(struct HWND__ *,unsigned int,unsigned int,long)" 
1>(?WndProc@@YAJPAUHWND__@@IIJ at Z) Pocket PC 2003 
1>(ARMV4)\Debug/WinCE_G.exe : fatal error LNK1120: 82 unresolved 
1>externals


************************

There are a lot of LNK2001 and a LNK2019 errors.  I thought it might be not including the proper include files.  I obtain the include files from the include files exported when compiling for VS2008.
I properly linked the DLL by adding the VC++ directories for Include and Library Files.  I also placed the gdalce_i.lib file into the Additional Dependences tab.

What other options can I do or is there something I am not seeing?

Thanks,
Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4926 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100622/804e4ab3/smime-0001.bin

------------------------------

Message: 2
Date: Tue, 22 Jun 2010 12:10:53 -0400
From: John Mitchell <mitchelljj98 at gmail.com>
Subject: [gdal-dev] I am trying to run gdal_polygonize.py and I get
	the	following error: gdal.Polygonize() not available.
To: gdal-dev <gdal-dev at lists.osgeo.org>
Cc: John Mitchell <mitchelljj98 at gmail.com>,	"John J. Mitchell"
	<jmitchell at insequenceinc.com>
Message-ID:
	<AANLkTimkoI-Kv53Ob08VRBOr8s79jLjkf8CZyJNM64nA at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I am trying to run gdal_polygonize.py and I get the following error:
gdal.Polygonize() not available.  You are likely using "old gen"
bindings or an older version of the next gen bindings.

Anyone have any idea how I can get gdal_polygonize to run within FWTools 2.4.7?

Below is the command and error from the command line.

Thanks,

John

C:\Program Files\FWTools2.4.7>python
"%FWTOOLS_DIR%\bin\gdal_polygonize.py"
E:\Jacksonville-StJohns_output\all_tiles\converted1\64_w3.tif
c:\jacksonville-stjohns_gdal_polygonize.shp

gdal.Polygonize() not available.  You are likely using "old gen"
bindings or an older version of the next gen bindings.


------------------------------

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

End of gdal-dev Digest, Vol 73, Issue 47
****************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4926 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100622/a7a94349/smime-0001.bin


More information about the gdal-dev mailing list