<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello,</DIV>
<DIV>&nbsp;I tried your suggestion and&nbsp;now link works, and then I&nbsp;made cmake generation more verbose, and noticed it's what I&nbsp;should have been doing all along.</DIV>
<DIV>&nbsp; Unfortunately I&nbsp;still have a problem qgis_core.dll cannot be found, yet I modified the path to</DIV>
<DIV>search in the directory where qgis_core.dll must lie, and also the place where geos_c.dll </DIV>
<DIV>and gdal16.dll must lie.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The program begins to run and then I have a runtime error!</DIV>
<DIV>program ...\timtut1.exe</DIV>
<DIV>file: global::qglobal.cpp</DIV>
<DIV>line 2030</DIV>
<DIV>&nbsp;</DIV>
<DIV>QWidget: Must construct a Qapplication before a QPaint device.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is this due to an untested &nbsp;last minute tweak of the sample code?</DIV>
<DIV>I have not touched the sample code myself!!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>(&nbsp;Jurgen: Sorry&nbsp;I accidentally replied to your message, and too early</DIV>
<DIV>Henri</DIV>
<DIV><BR><BR>--- On <B>Sun, 11/1/09, Jürgen E. Fischer <I>&lt;jef@norbit.de&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Jürgen E. Fischer &lt;jef@norbit.de&gt;<BR>Subject: Re: [Qgis-developer] Which compiler should I use to build example code?<BR>To: qgis-developer@lists.osgeo.org<BR>Date: Sunday, November 1, 2009, 6:56 PM<BR><BR>
<DIV class=plainMail>Hi Henri,<BR><BR>On Sun, 01. Nov 2009 at 06:36:50 -0800, Henri De Feraudy wrote:<BR>&gt;&nbsp; &nbsp; C:\Program Files\Quantum GIS\bin\qgis_core.dll : fatal error LNK1107:<BR>&gt;&nbsp; &nbsp; invalid or corrupt file: cannot read at 0x2F0<BR>&gt;&nbsp; &nbsp; (About the same mistake occurs when I use the osgeo release.)<BR><BR>Link with the .lib not with the .dll.<BR><BR>Jürgen<BR><BR>-- <BR>Jürgen E. Fischer&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;norBIT GmbH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Tel. +49-4931-918175-20<BR>Dipl.-Inf. (FH)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Rheinstraße 13&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax. +49-4931-918175-50<BR>Software Engineer&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;D-26506 Norden&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<A href="http://www.norbit.de/" target=_blank>http://www.norbit.de</A><BR><BR>-- <BR>norBIT Gesellschaft fuer
 Unternehmensberatung und Informationssysteme mbH<BR>Rheinstrasse 13, 26506 Norden<BR>GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502<BR><BR>_______________________________________________<BR>Qgis-developer mailing list<BR><A href="http://us.mc1108.mail.yahoo.com/mc/compose?to=Qgis-developer@lists.osgeo.org" ymailto="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target=_blank>http://lists.osgeo.org/mailman/listinfo/qgis-developer</A><BR></DIV></BLOCKQUOTE></td></tr></table>