From: Peter Williert on
Hello,

I have MATLAB R2007b on WinXP 32bit. Visual Studio 2005 with C++ and Intel Fortran Compiler 9.1 are installed, they work correctly.

Now I have to bind a C and FORTRAN Compiler like mentioned here: http://www-m3.ma.tum.de/Software/ODEInstall. I want to create a MEX-Interface for radau5 (a stiff ode/dae-solver).

I have tried the second method with LCC and it works, but the created DLL-File is machine- and MATLAB-(Version)-dependent, so that I can not use it on another PC.

Now I want to create a MEXW32 File. Can anybody help me? I will be very glad for any help. Thanks in advance.

Regards, PW
From: Peter Williert on
Here is the correct url: http://www-m3.ma.tum.de/bin/view/M3/Software/ODEInstall

I found that you can create a mexopts.bat file to determine which compiler to be use. By default MATLAB has only mexopts-files for every single compiler. Can anybody tell me how to bind Intel Fortran 9.1 and Visual Studio 2005 in mexopts.bat? I don't have any knowledge about programming in C and FORTRAN.

PLEASE HELP!
Regards, PW
From: Peter Williert on
PROBLEM SOLVED!

....with gnumex and MinGW. For further explanation see
http://gnumex.sourceforge.net/
http://www.cs.ubc.ca/~pcarbo/Compile_LBFGSB_on_Windows.txt

Here ist the MEXW32-File: http://ifile.it/2mlea5s/radau5mex.zip