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

Dmitry Baryshnikov polimax at mail.ru
Sun Jul 15 23:18:23 PDT 2012


16.07.2012 5:09, taibc пишет:
> Hi Dmitry,
>
> I tried to do that, but still got errors:
>
> /Error	36	error LNK2019: unresolved external symbol _CSLPartialFindString
> referenced in function "public: int __thiscall
> CPLStringList::PartialFindString(char const *)const "
> (?PartialFindString at CPLStringList@@QBEHPBD at Z)
> C:\Users\Administrator\Documents\Visual Studio
> 2010\Projects\CLCConverter\CLCConverter\main.obj	CLCConverter
> /
>
> Thanks and regards,
>
> Tai
>
>
> Dmitry Baryshnikov wrote
>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at .osgeo
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>> Try to add to preprocessor definitions:
>>
>> _WINDOWS
>> STRICT
>> _CRT_SECURE_NO_DEPRECATE
>> _CRT_NONSTDC_NO_DEPRECATE
>> _USRDLL
>>
>> Best regards,
>>       Dmitry
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
> --
> 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-tp4988103p4988476.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 Tai,

There do you get gdal_i.lib, dll and sources? It seems to me that they 
are different versions.

Best regards,
Dmitry



More information about the gdal-dev mailing list