SV: [gdal-dev] Microsoft VS 2010 - build of GDAL 1.9 does not work
Hans Jonsson
hans.jonsson at metria.se
Thu Apr 12 04:03:37 EDT 2012
Hi,
The compile phase seems to work, but when it comes to the linking there is something missing:
1>Link:
1> zlib.lib(crc32.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1> Creating library Release_DLL\gdal_i-vc10.lib and object Release_DLL\gdal_i-vc10.exp
1>rasterio.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalproxypool.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalrasterband.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalrasterblock.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>overview.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalpamdataset.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalpamproxydb.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalpamrasterband.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
1>gdalproxydataset.obj : error LNK2001: unresolved external symbol "public: int __thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
...
And so on until it breaks.
CPLStringlist should require gdal_priv.h which resides in directory "D:\MsVS2010\Projects\gdal-1.9.0\gcore", but it makes no difference if I add it to "Additional Include Directories"
Regards
/Hans
-----Ursprungligt meddelande-----
Från: Martin Chapman [mailto:chapmanm at pixia.com]
Skickat: den 11 april 2012 22:56
Till: 'Frank Warmerdam'; Hans Jonsson
Kopia: gdal-dev at lists.osgeo.org
Ämne: RE: [gdal-dev] Microsoft VS 2010 - build of GDAL 1.9 does not work
Microsoft VS 2010 - build of GDAL 1.9 64 and 32 bit works for me.
Best regards,
Martin
-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam
Sent: Wednesday, April 11, 2012 12:56 PM
To: Hans Jonsson
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Microsoft VS 2010 - build of GDAL 1.9 does not work
Hans,
If you can't be more specific I don't think you should be mailing such a broad mailing list!
Please capture the first actual build error, and provide notes on anything unusual about how you are building, tools, etc.
I'm pretty sure I've build GDAL 1.9 with the makefiles and VS2010, so the devil will be in the details.
Best regards,
Frank
On Wed, Apr 11, 2012 at 11:41 AM, Hans Jonsson <hans.jonsson at metria.se>
wrote:
> CPL string something
>
> /Hans_______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer _______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list