On 5/5/07, <b class="gmail_sendername">Gennady Khokhorin</b> <<a href="mailto:gok@aerometric-ak.com">gok@aerometric-ak.com</a>> 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 "mex.h"<br>#include "C:\my_Projects\packages\gdal-1.4.0\distrib\include\gdal_priv.h"<br>#pragma comment (lib,"gdal_i-
vc8.lib") // dynamic link<br>#pragma comment (lib,"libmex.lib") // static link (for mexErrMsgTxt)<br>3. copy both libs to test.cpp folder;<br>4. matlab: "mex test.cpp" or "mcc -v -B cpplib:testlib
test.cpp"<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 '<path>\test.mexw32'
<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>