<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> </HEAD>Joel,<br/><br/>Look in/gdal/nmake.opt to turn off odbc and then recompile gdal.<br/><br/>Martin<br/><p>Sent via BlackBerry by AT&T</p><p><hr size=2 width=100% align=center tabindex=-1><b>From</b>:  "Joel Odom" &lt;joelodom@gmail.com&gt;<br><b>Date</b>: Fri, 5 Sep 2008 15:21:20 -0400<br><b>To</b>: Martin Chapman&lt;mchapman@fortifieddatacom.com&gt;; &lt;gdal-dev@lists.osgeo.org&gt;<br><b>Subject</b>: Re: [gdal-dev] Newbie Developer Question About Linking<br></font></p><div dir="ltr">Hello, Martin. &nbsp;I added this library and tried it, but still no luck linking. &nbsp;I was looking at the source code, and it appears that all of the ODBC stuff is using header files distributed with Visual Studio. &nbsp;Is there a system dependency where this should be resolved, or is the dependency somewhere in one of the other .lib outputs of my gdal build? &nbsp;Thanks.<div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 3:17 PM, Martin Chapman <span dir="ltr">&lt;<a href="mailto:mchapman@fortifieddatacom.com">mchapman@fortifieddatacom.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">        <div lang="EN-US" link="blue" vlink="purple"> <div> <p><span style="font-size:11.0pt;color:#1F497D">Joel,</span></p> <p><span style="font-size:11.0pt;color:#1F497D">&nbsp;</span></p> <p><span style="font-size:11.0pt;color:#1F497D">Did you add "</span>gdal_i.lib" to your linker input property in the project settings?</p> <p>&nbsp;</p> <p>Martin<span style="font-size:11.0pt;color:#1F497D"></span></p> <p><span style="font-size:11.0pt;color:#1F497D">&nbsp;</span></p> <div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"> <p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Joel Odom<br><b>Sent:</b> Friday, September 05, 2008 1:12 PM<br><b>To:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><b>Subject:</b> [gdal-dev] Newbie Developer Question About Linking</span></p> </div><div class="Ih2E3d"> <p>&nbsp;</p> <div> <p>I&#39;m new to GDAL, though I&#39;m looking forward to using it. &nbsp;I&#39;ve compiled 1.5.2 under Microsoft Visual Studio 2008 and am trying to experiment with the library. &nbsp;In my application that links to the library I&#39;m getting an unresolved reference (pasted below). &nbsp;I don&#39;t have any ODBC experience and would&nbsp;appreciate&nbsp;any advice as to how I can resolve this reference (and some other ODBC unresolved externals that come after this) so I can compile and use OGR. &nbsp;Thanks much for any help.</p> <div> <p>&nbsp;</p> </div> <div> <p>&nbsp;</p> </div> <div> <p>&nbsp;</p> </div> <div> <div> <p>Error<span>&nbsp;&nbsp;&nbsp; </span>3<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>error LNK2019: unresolved external symbol _SQLInstallerError@20 referenced in function &quot;public: int __thiscall CPLODBCDriverInstaller::InstallDriver(char const *,char const *,unsigned short)&quot; (?InstallDriver@CPLODBCDriverInstaller@@QAEHPBD0G@Z)<span>&nbsp; </span>gdal.lib<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p> </div> <div> <p>&nbsp;</p> </div> <div> <p>&nbsp;</p> </div> <div> <p>&nbsp;</p> </div> <p><br> -- <br><a href="http://giscoder.blogspot.com/" target="_blank">http://giscoder.blogspot.com/</a></p> </div> </div> </div></div> </div>  </blockquote></div><br><br clear="all"><br>-- <br><a href="http://giscoder.blogspot.com/">http://giscoder.blogspot.com/</a><br></div></div>  </html>