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

Dmitry Baryshnikov polimax at mail.ru
Mon Jul 16 00:04:50 PDT 2012


16.07.2012 10:37, taibc пишет:
> Hi Dmitry, thank you very much !
>
> I think maybe it is problem, because I use files from many sources (on
> internet).
>
> I've just re-built GDAL sources by using Visual Studio Command Prompt. And,
> it is ok now.
>
> I could build my project with Ogr files. But, when I ran (F5) the project, I
> got an error:
>
> "/The program can't start because gdal18.dll is missing from your computer.
> Try reinstalling the program to fix this problem/" (Please see attached
> screenshot).  http://osgeo-org.1560.n6.nabble.com/file/n4988499/error.png
>
> Do you know this errror ?
>
> Thanks and regards,
>
> Tai
>
>
>
> Dmitry Baryshnikov wrote
>> 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 .osgeo
>>> 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
>>
>> _______________________________________________
>> 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-tp4988103p4988499.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
Put gdal18.dll to the same folder of your executable.


More information about the gdal-dev mailing list