[geos-devel] how to compile this new package‏

Mateusz Loskot mateusz at loskot.net
Wed Dec 30 12:50:40 EST 2009


沙华 蔓殊 wrote:
> All,

> 
> I can't compile geos-3.2.0.tar.bz2 with following commands.
> 
> autogen.bat nmake /f makefile.vc MSVC_VER=1500
> 
> I use VS 2005 + Sp1 and Wndows xp + Sp3. Please take a look at the
> file attached. I got an error.
> 
> CoordinateArraySequenceFactory.obj : error LNK2019: unresolved
> external symbol " public: virtual __thiscall
> geos::geom::CoordinateSequenceFactory::~CoordinateSeq 
> uenceFactory(void)" (??1CoordinateSequenceFactory at geom@geos@@UAE at XZ)
> referenced in function "public: virtual __thiscall
> geos::geom::CoordinateArraySequenceFacto 
> ry::~CoordinateArraySequenceFactory(void)"
> (??1CoordinateArraySequenceFactory at ge om at geos@@UAE at XZ) geos_ts_c.obj
> : error LNK2001: unresolved external symbol "public: virtual __thi 
> scall
> geos::geom::CoordinateSequenceFactory::~CoordinateSequenceFactory(void)"
> ( ??1CoordinateSequenceFactory at geom@geos@@UAE at XZ) geos.dll : fatal
> error LNK1120: 1 unresolved externals NMAKE : fatal error U1077:
> '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\l ink.exe"' :
> return code '0x460' Stop. NMAKE : fatal error U1077: '"C:\Program
> Files\Microsoft Visual Studio 8\VC\BIN\n make.EXE"' : return code
> '0x2' Stop.
> 
> Please give me an advice to solve it. Thanks.


It is a known problem that was reported here:

http://trac.osgeo.org/geos/ticket/313

It's been already fixed in the SVN trunk. Simply, add the missing line
to source/Makefile.vc file as presented here:

http://trac.osgeo.org/geos/changeset/2833

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the geos-devel mailing list