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 <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 <http://osgeo-org.1560.n6.nabble.com/GDAL-Dev-f3742093.html> 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 <http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>



*Error.jpg* (343K) Download Attachment <http://osgeo-org.1560.n6.nabble.com/attachment/4988136/0/Error.jpg>

------------------------------------------------------------------------
View this message in context: Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010 <http://osgeo-org.1560.n6.nabble.com/Error-LNK1120-314-unresolved-externals-When-using-Ogr-C-class-on-Visual-Studio-2010-tp4988103p4988136.html> Sent from the GDAL - Dev mailing list archive <http://osgeo-org.1560.n6.nabble.com/GDAL-Dev-f3742093.html> at Nabble.com.


_______________________________________________
gdal-dev mailing list
[email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to