[gdal-dev] Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010
taibc
taibc_coltech at yahoo.com
Thu Jul 12 23:56:33 PDT 2012
Thanks Dmitry,
I linked the file gdal_i.lib to the project (by editing 'Additional Dependencies' in the area: Linker/Input). And still got similar errors (but the number of errors were reduced) ?
Kind regards,
Tai
________________________________
From: Dmitry Baryshnikov [via OSGeo.org] <ml-node+s1560n4988120h39 at n6.nabble.com>
To: taibc <taibc_coltech at yahoo.com>
Sent: Friday, July 13, 2012 1:17 PM
Subject: Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010
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
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> Hi,
You have to link gdal1x.lib to your project
Best regards,
Dmitry
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
________________________________
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.n6.nabble.com/Error-LNK1120-314-unresolved-externals-When-using-Ogr-C-class-on-Visual-Studio-2010-tp4988103p4988120.html
To unsubscribe from Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010, click here.
NAML
--
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-tp4988103p4988131.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120712/e9730022/attachment.html>
More information about the gdal-dev
mailing list