title: How to import GDAL lib Qt, Qt Creator?
body: <p>i have some problem with gdal lib. I am using mingw32 in qt and i download from <a href="http://gisinternals.com/release.php" rel="nofollow noreferrer">here</a> gdal lib. Then, when i try import gdal from qt. i this error for GDALAllRegister(); function in main.cpp side.</p>
  <p>My import way is: right-click on project -&gt; add library -&gt; external library -&gt; choose path of gdal_i.lib -&gt; choose dynamic link instead of static -&gt; okey , i had this error : error: undefined reference to `GDALAllRegister@0'.</p>
  <p>My .pro file:</p>
  <pre><code>unix:!macx|win32: LIBS += -L$$PWD/../../../Downloads/release-1911-x64-gdal-3-1-2-mapserver-7-6-1-libs/lib/ -lgdal_i
  
  INCLUDEPATH += $$PWD/../../../Downloads/release-1911-x64-gdal-3-1-2-mapserver-7-6-1-libs/include
  DEPENDPATH += $$PWD/../../../Downloads/release-1911-x64-gdal-3-1-2-mapserver-7-6-1-libs/include
  </code></pre>
  <p>My main.cpp file includes:</p>
  <pre><code>#include &quot;gdal.h&quot;
  #include &quot;gdal_priv.h&quot;
  </code></pre>
  <p>qt see my header file and when i ctrl+click on GDALAllRegister() function, opening gdal.h header. But i had error that i just indicated.</p>
  <p>What is my lib problem? How can i import GDAL in QT?</p>