On 5/5/07, <b class="gmail_sendername">Gennady Khokhorin</b> &lt;<a href="mailto:gok@aerometric-ak.com">gok@aerometric-ak.com</a>&gt; wrote:<br>Thanks for your reply.<br><br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I did switch to cpp and was able to create .mexs32 file as well as .dll dynamically linked to gdal. <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Steps you could try:<br>1. rename file to test.cpp;<br>2. load libs in the header:<br>#include &quot;mex.h&quot;<br>#include &quot;C:\my_Projects\packages\gdal-1.4.0\distrib\include\gdal_priv.h&quot;<br>#pragma comment (lib,&quot;gdal_i-
vc8.lib&quot;) // dynamic link<br>#pragma comment (lib,&quot;libmex.lib&quot;) // static link (for mexErrMsgTxt)<br>3. copy both libs to test.cpp folder;<br>4. matlab: &quot;mex test.cpp&quot; or &quot;mcc -v -B cpplib:testlib 
test.cpp&quot;<br><br>My environment: msvc8.0+gdal1.4.0</blockquote><div><br>I did it using gdal_i.lib from FWTools1.2.1. But no more success, Matlab (btw I use 7.4) is still saying:<br>??? Invalid MEX-file &#39;&lt;path&gt;\test.mexw32&#39; 
<font size="-1">The specified procedure could not be found.<br><br>But I downloaded GDAL sources and built with </font>msvc8.0. and with add of gdal14.dll in directory it seems to work.<br><br>I hope that programming will follow more easily now :p
<br><br>Thanks for your help.<br>Guillaume.<br></div></div>