<div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks Dmitry,</span></div><div><br><span></span></div><div><span>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) ?</span></div><div><br><span></span></div><div><span>Kind regards,</span></div><div><span>Tai<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Dmitry Baryshnikov [via OSGeo.org] <<a href="/user/SendEmail.jtp?type=node&node=4988131&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>><br> <b><span style="font-weight: bold;">To:</span></b> taibc <<a href="/user/SendEmail.jtp?type=node&node=4988131&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>>
 <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, July 13, 2012 1:17 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010<br> </font> </div> <br>
<div id="yiv1975458157">

        13.07.2012 7:56, taibc пишет:
<div class="yiv1975458157shrinkable-quote"><div class='shrinkable-quote'><br>> Hi everyone,
<br>>
<br>> I am trying to use Ogr C++ class on Visual Studio 2010. I created an new
<br>> empty Visual C++ project (Win 32 Console Application). Then added Ogr files
<br>> into project, then buid it.
<br>>
<br>> I got the errors similar as below:
<br>>
<br>> /Error   147     error LNK2001: unresolved external symbol "private: virtual int
<br>> __thiscall OGRLinearRing::_exportToWkb(enum OGRwkbByteOrder,int,unsigned
<br>> char *)const " (?_exportToWkb@OGRLinearRing@@EBEHW4OGRwkbByteOrder@@HPAE@Z)
<br>> c:\Users\administrator\documents\visual studio
<br>> 2010\Projects\CLCConverter\CLCConverter\main.obj CLCConverter/
<br>>
<br>> Do you know how to fix it ?
<br>>
<br>> Thanks and regards,
<br>>
<br>> Tai
<br>>
<br>> --
<br>> 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<br>> Sent from the GDAL - Dev mailing list archive at <a target="_blank" href="http://nabble.com/" rel="nofollow" link="external">Nabble.com</a>.
<br>> _______________________________________________
<br>> gdal-dev mailing list
<br>> <a href="" rel="nofollow" target="_top" link="external">[hidden email]</a>
<br>> http://lists.osgeo.org/mailman/listinfo/gdal-dev<br>>
<br>>
</div>Hi,
</div><br>You have to link gdal1x.lib to your project
<br><br>Best regards,
<br>Dmitry
<br>_______________________________________________
<br>gdal-dev mailing list
<br><a href="" rel="nofollow" target="_top" link="external">[hidden email]</a>
<br><a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
        
        <br>
        <br>
        <hr color="#cccccc" noshade="noshade" size="1">
        <div style="color:#444;font:12px tahoma, geneva, helvetica, arial, sans-serif;">
                <div style="font-weight:bold;">If you reply to this email, your message will be added to the discussion below:</div>
                http://osgeo-org.1560.n6.nabble.com/Error-LNK1120-314-unresolved-externals-When-using-Ogr-C-class-on-Visual-Studio-2010-tp4988103p4988120.html
        </div>
        <div style="color:#666;font:11px tahoma, geneva, helvetica, arial, sans-serif;margin-top:.4em;line-height:1.5em;">
                
                To unsubscribe from Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010, <a rel="nofollow" target="_blank" href="" link="external">click here</a>.<br>
                <a rel="nofollow" target="_blank" href="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" style="font:9px serif;" link="external">NAML</a>
        </div></div><br><br> </div> </div>  </div>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Error-LNK1120-314-unresolved-externals-When-using-Ogr-C-class-on-Visual-Studio-2010-tp4988103p4988131.html">Re: Error LNK1120: 314 unresolved externals - When using Ogr C++ class on Visual Studio 2010</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/GDAL-Dev-f3742093.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>