<div dir="ltr">Hello everyone, <div><br></div><div style>I have tried for at least two weeks to find a way to manipulate shapefiles in a project in Visual Studio C++. I found two libraries (GDAL_OGR and Shapelib) which could help me to do it, but I failed at using them with VS C++ 2008.</div>
<div style><br></div><div style>Indeed, I follow this link : <a href="http://trac.osgeo.org/gdal/wiki/BuildingOnWindows">http://trac.osgeo.org/gdal/wiki/BuildingOnWindows</a> and tried to used the prebuild libraries as well as built it myself (by first choosing version of GDAL here : <a href="http://www.gisinternals.com/sdk/" style="font-family:Calibri,sans-serif;font-size:11pt;line-height:115%">http://www.gisinternals.com/sdk/</a>), but I have same errors which is a LNK2001 unresolved external symbol. I thought I linked well the gdal_i.lib ( Project Properties > Linking Options > Additional Librairy > Path to gdal_i.lib, I also add gdal_i.lib (only the name) where I have to, and add the path to my includes files also in Project Properties > C++/C Options). </div>
<div style><br></div><div style>I thought may be I have to add reference to my gdal.dll. So I added the path of bin\gdal.dll to the option Add path reference. But I had the same error. I was thinking about use #import *.dll and/or #unsing *.dll but I don't really understand how doing this (I looked through <a href="http://msdn.microsoft.com/fr-fr/">http://msdn.microsoft.com/fr-fr/</a> ). Anyway, it might be unuseful as I already linked my *.lib, isn't it? </div>
<div style><br></div><div style>So I tried to use Shapelib dowloaded from here, but I just failed to build the library as it seems some *.h are missing. </div><div style><br></div><div style>If you have any advice, I would be very releaved and of course grateful.</div>
<div style><br></div><div style>Thank you in advance.</div><div style>Marion.</div><div style><br></div><div style><br></div></div>