[gdal-dev] Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010

Dmitry Baryshnikov polimax at mail.ru
Thu Jul 12 23:16:30 PDT 2012


13.07.2012 7:56, taibc пишет:
> Hi everyone,
>
> I am trying to use Ogr C++ class on Visual Studio 2010. I created an new
> empty Visual C++ project (Win 32 Console Application). Then added Ogr files
> into project, then buid it.
>
> I got the errors similar as below:
>
> /Error	147	error LNK2001: unresolved external symbol "private: virtual int
> __thiscall OGRLinearRing::_exportToWkb(enum OGRwkbByteOrder,int,unsigned
> char *)const " (?_exportToWkb at OGRLinearRing@@EBEHW4OGRwkbByteOrder@@HPAE at Z)
> c:\Users\administrator\documents\visual studio
> 2010\Projects\CLCConverter\CLCConverter\main.obj	CLCConverter/
>
> Do you know how to fix it ?
>
> Thanks and regards,
>
> Tai
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-LNK1120-314-unresolved-externals-When-using-Ogr-C-class-on-Visual-Studio-2010-tp4988103.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
Hi,

You have to link gdal1x.lib to your project

Best regards,
Dmitry


More information about the gdal-dev mailing list