<div dir="ltr"><div><div><div><div>Thanks Even,<br><br></div>I commented the DllMain() implementation and now my project compiles again.<br></div>I would love to send a patch but I'm not a C++ developer and don't know how to fix this.<br>
<br></div>I will now look into the ECW error.<br><br></div>Thanks,<br><div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><br>
<br>
Paul<br>
<br>
<div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><div style="border:1px solid #e5e5e5;background-color:#f8f8f8;padding:0.8em 0.8em 0.3em 0.8em"><div style="margin:0 0 8px 0"><p style="margin:0">
<span><b><img style="float:left;margin-left:5px;margin-right:5px" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png" alt="" height="120" width="160">Paul Meems </b><br><span>Release manager, configuration manager</span><br>
<span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br><span>Dutch speaking users.</span><br>
<a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0"><b><br></b></p></div></div><img src="http://p1.wisestamp.com/pixel.png?p=mozilla&v=3.9.12&t=1322134056890&u=482737fd0c4ca423" height="1" width="1"></div>
</div>
<br><br><div class="gmail_quote">2013/10/14 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le lundi 14 octobre 2013 18:33:05, Paul Meems a écrit :<br>
<div><div class="h5">> Hi all,<br>
><br>
> We're using GDAL in our Open Source GIS application called MapWinGIS (<br>
> <a href="https://mapwingis.codeplex.com" target="_blank">https://mapwingis.codeplex.com</a>).<br>
> MapWinGIS is build using Visual Studio 2008 Pro and its language is VC++.<br>
> We've been using GDAL for years now.<br>
> I'm currently in the process of update the external libraries, like GDAL,<br>
> GEOS, etc.<br>
><br>
> I have compiled the trunk version of GDAL (v1.10.1), with the trunk version<br>
> of Proj4, GEOS v3.4.2, ERDAS SDK v5 and the latest LizardTech SDK.<br>
> This process seems to be working OK, like it has been for the last several<br>
> years.<br>
> When I test with gdalinfo.exe I can open tiff-files, ECW-files and<br>
> MrSid-files.<br>
><br>
> But when I want to include the gdal.lib into MapWinGIS I get two strange<br>
> errors which I don't get if I use GDAL v1.9.<br>
><br>
> #1: error LNK2005: _DllMain@12 already defined in<br>
> mfcs90.lib(dllmodul.obj) gdal.lib<br>
> #2: fatal error LNK1194: cannot delay-load 'NCSEcw.dll' due to import of<br>
> data symbol '"__declspec(dllimport) const NCS::CMutex::`vftable'"<br>
> (__imp_??_7CMutex@NCS@@6B@)'; link without /DELAYLOAD:NCSEcw.dll<br>
><br>
> The second error is about the ERDAS SDK and can be solved by removing<br>
> 'NCSEcw.dll' from the delay load binaries. But I'm not sure if we can still<br>
> show ecw-files.<br>
><br>
> #1 seems to be the biggest problem and we've tried several different<br>
> configurations and searched a lot using Google but we can solve this.<br>
><br>
> Does anybody understands what is going on and how we can fix this so we can<br>
> use the latest GDAL library?<br>
<br>
</div></div>It seems that you are statically linking to GDAL ? Then try commenting the<br>
DllMain() implementation in gcore/gdaldllmain.cpp. If this is the root of the<br>
problem, it probably means that we shouldn't link that file in the static lib.<br>
Patches welcome !<br>
<br>
><br>
><br>
> Thanks,<br>
><br>
> Paul<br>
><br>
> *Paul Meems *<br>
<div class="im">> Release manager, configuration manager<br>
> and forum moderator of MapWindow GIS.<br>
> <a href="http://www.mapwindow.org" target="_blank">www.mapwindow.org</a><br>
><br>
> Owner of MapWindow.nl - Support for<br>
> Dutch speaking users.<br>
> <a href="http://www.mapwindow.nl" target="_blank">www.mapwindow.nl</a><br>
><br>
</div>> *<br>
> *<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</font></span></blockquote></div><br></div>