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&nbsp; -DMATLAB_MEXFILE&nbsp; -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 `,&#39; or `...&#39; before &#39;*&#39; token<br>matlabscalar.h:26: error: ISO C++ forbids declaration of `mxArray&#39; with no type<br>matlabscalar.h:30: error: expected `)&#39; before &#39;*&#39; token<br>
matlabscalar.cpp:14: error: expected `,&#39; or `...&#39; before &#39;*&#39; token<br>matlabscalar.cpp:14: error: ISO C++ forbids declaration of `mxArray&#39; with no type<br>matlabscalar.cpp: In function `double&amp; getMatlabScalar(int)&#39;:<br>
matlabscalar.cpp:15: error: `ptr&#39; was not declared in this scope<br>matlabscalar.cpp:15: error: `mxIsDouble&#39; was not declared in this scope<br>matlabscalar.cpp:15: warning: unused variable &#39;ptr&#39;<br>matlabscalar.cpp:15: warning: unused variable &#39;mxIsDouble&#39;<br>
matlabscalar.cpp:17: error: `ptr&#39; was not declared in this scope<br>matlabscalar.cpp:17: error: `mxGetNumberOfElements&#39; was not declared in this scope<br>matlabscalar.cpp:17: warning: unused variable &#39;ptr&#39;<br>
matlabscalar.cpp:17: warning: unused variable &#39;mxGetNumberOfElements&#39;<br>matlabscalar.cpp:19: error: `ptr&#39; was not declared in this scope<br>matlabscalar.cpp:19: error: `mxGetPr&#39; was not declared in this scope<br>
matlabscalar.cpp:19: warning: unused variable &#39;ptr&#39;<br>matlabscalar.cpp:19: warning: unused variable &#39;mxGetPr&#39;<br>matlabscalar.cpp: At global scope:<br>matlabscalar.cpp:22: error: `mxArray&#39; was not declared in this scope<br>
matlabscalar.cpp:22: error: `ptr&#39; was not declared in this scope<br>matlabscalar.cpp:22: error: expected `,&#39; or `;&#39; before &#39;{&#39; token<br>matlabscalar.cpp:29: error: expected `,&#39; or `...&#39; before &#39;*&#39; token<br>
matlabscalar.cpp:30: error: ISO C++ forbids declaration of `mxArray&#39; with no type<br>matlabscalar.cpp: In constructor `MatlabScalar::MatlabScalar(int)&#39;:<br>matlabscalar.cpp:30: error: `ptr&#39; was not declared in this scope<br>
matlabscalar.cpp:30: warning: unused variable &#39;ptr&#39;<br>matlabscalar.cpp: At global scope:<br>matlabscalar.cpp:32: error: expected `)&#39; before &#39;*&#39; 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>