Hi guys.<br>I was trying to link interface the IPOPT to matlab, my matlab version is 7.6 R2008a.<br>and now ,I have make regular installation of IPOPT working, <br>and did some extra steps mentioned in <br><h2>How to install and use the MATLAB interface for IPOPT written by <br>
</h2>
<a href="http://www.cs.ubc.ca/%7Epcarbo">Peter Carbonettot</a><br>
Department of Computer Science<br>
University of British Columbia<br><br>things are going fine till I tried to make all.<br>and errors show up like <br>$ make all<br>g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -fPIC -fexceptions -DMATLAB_MEXFILE -Ic:/msys/1.0/home/MPC/CoinIpopt/Ipopt/install1/include -IC:\C:\MATLAB6p5/extern/include -o matlabscalar.o -c matlabscalar.cpp<br>
matlabscalar.cpp:1: warning: -fPIC ignored for target (all code is position independent)<br>In file included from matlabscalar.cpp:9:<br>matlabscalar.h:12:17: mex.h: No such file or directory<br>In file included from matlabscalar.cpp:9:<br>
matlabscalar.h:26: error: expected `,' or `...' before '*' token<br>matlabscalar.h:26: error: ISO C++ forbids declaration of `mxArray' with no type<br>matlabscalar.h:30: error: expected `)' before '*' token<br>
matlabscalar.cpp:14: error: expected `,' or `...' before '*' token<br>matlabscalar.cpp:14: error: ISO C++ forbids declaration of `mxArray' with no type<br>matlabscalar.cpp: In function `double& getMatlabScalar(int)':<br>
matlabscalar.cpp:15: error: `ptr' was not declared in this scope<br>matlabscalar.cpp:15: error: `mxIsDouble' was not declared in this scope<br>matlabscalar.cpp:15: warning: unused variable 'ptr'<br>matlabscalar.cpp:15: warning: unused variable 'mxIsDouble'<br>
matlabscalar.cpp:17: error: `ptr' was not declared in this scope<br>matlabscalar.cpp:17: error: `mxGetNumberOfElements' was not declared in this scope<br>matlabscalar.cpp:17: warning: unused variable 'ptr'<br>
matlabscalar.cpp:17: warning: unused variable 'mxGetNumberOfElements'<br>matlabscalar.cpp:19: error: `ptr' was not declared in this scope<br>matlabscalar.cpp:19: error: `mxGetPr' was not declared in this scope<br>
matlabscalar.cpp:19: warning: unused variable 'ptr'<br>matlabscalar.cpp:19: warning: unused variable 'mxGetPr'<br>matlabscalar.cpp: At global scope:<br>matlabscalar.cpp:22: error: `mxArray' was not declared in this scope<br>
matlabscalar.cpp:22: error: `ptr' was not declared in this scope<br>matlabscalar.cpp:22: error: expected `,' or `;' before '{' token<br>matlabscalar.cpp:29: error: expected `,' or `...' before '*' token<br>
matlabscalar.cpp:30: error: ISO C++ forbids declaration of `mxArray' with no type<br>matlabscalar.cpp: In constructor `MatlabScalar::MatlabScalar(int)':<br>matlabscalar.cpp:30: error: `ptr' was not declared in this scope<br>
matlabscalar.cpp:30: warning: unused variable 'ptr'<br>matlabscalar.cpp: At global scope:<br>matlabscalar.cpp:32: error: expected `)' before '*' token<br>make: *** [matlabscalar.o] Error 1<br><br>is it because of the settings or the source codes are not right.<br>
can anyone having experience of interfacing IPOPT with matlab help me out. <br>Thank you very much<br>