[Ipopt] #78: I cannot install the IPOPT correctly

Ma Yudong mayudong at gmail.com
Fri May 30 20:09:51 EDT 2008


Hi guys.
I was trying to link interface the IPOPT to matlab, my matlab version is 7.6
R2008a.
and now ,I have make regular installation of IPOPT working,
and did some extra steps mentioned in
How to install and use the MATLAB interface for IPOPT written by
Peter Carbonettot <http://www.cs.ubc.ca/%7Epcarbo>
Department of Computer Science
University of British Columbia

things are going fine till I tried to make all.
and errors show up like
$ make all
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
matlabscalar.cpp:1: warning: -fPIC ignored for target (all code is position
independent)
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
matlabscalar.h:30: error: expected `)' before '*' token
matlabscalar.cpp:14: error: expected `,' or `...' before '*' token
matlabscalar.cpp:14: error: ISO C++ forbids declaration of `mxArray' with no
type
matlabscalar.cpp: In function `double& getMatlabScalar(int)':
matlabscalar.cpp:15: error: `ptr' was not declared in this scope
matlabscalar.cpp:15: error: `mxIsDouble' was not declared in this scope
matlabscalar.cpp:15: warning: unused variable 'ptr'
matlabscalar.cpp:15: warning: unused variable 'mxIsDouble'
matlabscalar.cpp:17: error: `ptr' was not declared in this scope
matlabscalar.cpp:17: error: `mxGetNumberOfElements' was not declared in this
scope
matlabscalar.cpp:17: warning: unused variable 'ptr'
matlabscalar.cpp:17: warning: unused variable 'mxGetNumberOfElements'
matlabscalar.cpp:19: error: `ptr' was not declared in this scope
matlabscalar.cpp:19: error: `mxGetPr' was not declared in this scope
matlabscalar.cpp:19: warning: unused variable 'ptr'
matlabscalar.cpp:19: warning: unused variable 'mxGetPr'
matlabscalar.cpp: At global scope:
matlabscalar.cpp:22: error: `mxArray' was not declared in this scope
matlabscalar.cpp:22: error: `ptr' was not declared in this scope
matlabscalar.cpp:22: error: expected `,' or `;' before '{' token
matlabscalar.cpp:29: error: expected `,' or `...' before '*' token
matlabscalar.cpp:30: error: ISO C++ forbids declaration of `mxArray' with no
type
matlabscalar.cpp: In constructor `MatlabScalar::MatlabScalar(int)':
matlabscalar.cpp:30: error: `ptr' was not declared in this scope
matlabscalar.cpp:30: warning: unused variable 'ptr'
matlabscalar.cpp: At global scope:
matlabscalar.cpp:32: error: expected `)' before '*' token
make: *** [matlabscalar.o] Error 1

is it because of the settings or the source codes are not right.
can anyone having experience of interfacing IPOPT with matlab help me out.
Thank you very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20080530/a47b0a6c/attachment.html 


More information about the Ipopt mailing list