[Ipopt] Creating MATLAB mex file error

Peter Carbonetto pcarbo at cs.ubc.ca
Tue Oct 7 00:40:04 EDT 2008

Hi Bing, did you read the installation instructions for the MATLAB 
inferface on the IPOPT project website? It looks like the compiler cannot 
find the MATLAB include files, and you will probably need to edit the 
Makefile with the correct directories.

Please let me know your progress.


> When I tried to follow the instructions to create mex file for
> MATLAB(2008a), I met an error below:
> "In file included from matlabscalar.cpp: 9: matlabscalar.h:12:17: mex.h: No
> such file or directory
>  In file included from matlabscalar.cpp:9:matlabscalar.h:26: error: expected
> ',' or '...' before '*' token
> matlabscalar.h:26 error: ISO C++ forbids declaration of 'mxArray' with no
> type...
> A lot of other messages about matlabscalar. All seems synatax errors.
> Anyone can help?
> Thank you very much
> Bing,
> PhD student
> Carnegie Mellon, USA

More information about the Ipopt mailing list