PDA

View Full Version : Matlab's MEX Files


Tadj
06-22-2004, 02:35 PM
Hello,

Does anyone have experience using LF to create .MEX files on windows?
I'm trying to create a .dll file from the command line but i get an error message
"Undefined symbol "__imp__MXCREATEDOUBLEMATRIX@12"".
I'm linking mexmain.obj, lfmatlab.lib,libmex.lib,libmx.lib,libeng.lib and libmat.lib.

In fact, mxCreateDoubleMatrix isn't listed in matlab's documentation as a Fortran
mx-function but as a C mx-function. :confused:

thanks in advance for your help.

tzeis
06-24-2004, 07:37 PM
That function should be callable from Fortran. Have you taken a look at our Matlab compatibility download?
<a href="http://www.lahey.com/miscfix.htm">Link to Matlab Compatibility info</a>