title: linking vs 2012 c++ GDAL
body: <p>I created a standard windows application with VS 2012 Pro.  Just a main.cpp that looks like this:</p>
  
  <pre><code>#include "gdal_priv.h"
  #include "cpl_conv.h"
  
  int main(int argc, char* argv[])
  {
     GDALAllRegister();
  
      return 0;
  }
  </code></pre>
  
  <p>I have set my include path properly.  I have gdal_i.lib in my Linker -> Input -> Additional Dependencies.</p>
  
  <p>Link fails with the following message:</p>
  
  <blockquote>
    <p>1>main.obj : error LNK2019: unresolved external symbol
    _GDALAllRegister@0 referenced in function _main</p>
  </blockquote>
  
  <p>(A scad of other symbols are missing as well, but this one should be easy.)</p>
  
  <p>I used dumpbin and GDALAllRegister appears in the exported symbols.  It does appear as "GDALAllRegister", not as "_GDALAllRegister@0".</p>
  
  <p>I tried downloading and using the dev build, and also built myself.  Same results.</p>
  
  <p>I just know this is something simple, but I'm totally brain-cramping here.  What have I done wrong?</p>
  
  <p>Thanks.</p>
  
  <p>-reilly.</p>