<div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Dmitry,</span></div><div><span><br></span></div><div><span>After modifying as you said, I got many errors like below:</span></div><div><br><span></span></div><div><span><span style="font-style: italic;">error LNK2019: unresolved external symbol _CSLPartialFindString referenced in function "public: int __thiscall CPLStringList::PartialFindString(char const *)const " (?PartialFindString@CPLStringList@@QBEHPBD@Z)    </span><br></span></div><div>Thanks and regards,</div><div><br></div><div>Tai<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=4988184&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=4988184&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 5:03 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="yiv2068094133">

        
  
    

  
  
    <div class="yiv2068094133moz-cite-prefix">13.07.2012 13:55, taibc пишет:<br>
    </div>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em;" type="cite">
      <div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">Hi, <br>
        <br>
        Although, I added 'gdal_i.lib' in Properties (Linker
        ->Input->Additional Dependencies) and this file in Debug
        folder, but I got an other errror:<br>
        <br>
        <span style="font-style:italic;">error LNK1104: cannot open
          file 'gdal_i.lib'   </span><br>
        <br>
        Do you know how to fix it ?<br>
        <br>
        Thanks and regards,<br>
        <br>
        Tai<br>
         <br>
        <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 id="yiv2068094133">
              <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em;" type="cite">
                <pre>_______________________________________________
gdal-dev mailing list
<a href="" rel="nofollow" target="_top" link="external">[hidden email]</a>
http://lists.osgeo.org/mailman/listinfo/gdal-dev</pre>
              </blockquote>
              Hi,<br>
               <br>
              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)<br>
              E.g. for GDALVersionInfo function you have to include only
              in your code #include "gdal.h"<br>
              <br>
              Best regards,<br>
                  Dmitry<br>
              <br>
              <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-tp4988103p4988142.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 href="" rel="nofollow" target="_top" 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 rel="nofollow" target="_blank" href="http://osgeo-org.1560.n6.nabble.com/Error-LNK1120-314-unresolved-externals-When-using-Ogr-C-class-on-Visual-Studio-2010-tp4988103p4988177.html" link="external">Re:
        Error LNK1120: 314 unresolved externals - When using Ogr C++
        class on Visual Studio 2010</a><br>
      Sent from the <a rel="nofollow" target="_blank" href="http://osgeo-org.1560.n6.nabble.com/GDAL-Dev-f3742093.html" link="external">GDAL
        - Dev mailing list archive</a> at <a target="_blank" href="http://nabble.com/" rel="nofollow" link="external">Nabble.com</a>.<br>
      <br>
      <fieldset class="yiv2068094133mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="" rel="nofollow" target="_top" link="external">[hidden email]</a>
<a rel="nofollow" class="yiv2068094133moz-txt-link-freetext" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
    </blockquote>
    Put there (Linker ->Input->Additional Dependencies) the full
    path to gdal_i.lib or add the path to gdal_i.lib in Linker
    ->General->AdditionalLibraryDirectories<br>
    <br>
    Best regards,<br>
        Dmitry<br>
    <br>
  

<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-tp4988103p4988180.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-tp4988103p4988184.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/>