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

taibc taibc_coltech at yahoo.com
Fri Jul 13 00:54:45 PDT 2012


Ok, thank you !


Kind regards,

Tai



________________________________
 From: Dmitry Baryshnikov [via OSGeo.org] <ml-node+s1560n4988142h21 at n6.nabble.com>
To: taibc <taibc_coltech at yahoo.com> 
Sent: Friday, July 13, 2012 2:44 PM
Subject: Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010
 

13.07.2012 11:18, taibc пишет:

Hi,
>
>What are exported classes/methods ?
>I only created a file: main.cpp to show the word "Hello", and
        added Ogr files into my project, then built it.
>
>Please see the attached file.
>
>My idea is: I will create functions in the main.cpp file that
        use methods of Ogr class to allow convert .dgn files to shape
        files.
>
>Thanks and regards,
>
>Tai
>
>View this message in context: Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010
>>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,
>
>After linking, you can use only exported classes and
              methods. It seems to me you try to use not exported
              method. Maybe some your code can help.
>
>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-tp4988103p4988133.html 
>To unsubscribe from Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010, click here.
>NAML 
>
>
>
> Error.jpg (343K) Download Attachment
>>________________________________
> View this message in context: Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010
>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 mast remove any cpl_*.cpp and any gdal headers from your
    solution. In project properties you have to put path to gdal headers
    (gdal_root/port, gdal_root/gcore, gdal_root/ogr)
E.g. for GDALVersionInfo function you have to include only in your
    code #include "gdal.h"

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-tp4988103p4988142.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-tp4988103p4988144.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/20120713/474d124a/attachment-0001.html>


More information about the gdal-dev mailing list