[Ipopt] Undeclared mxIsLogicalScalar in Matlab interface
D'Amato, Fernando (GE, Research)
damato at crd.ge.com
Sat Jul 18 22:06:59 EDT 2009
Hi Peter,
Your suggestion worked.
I kept matlab 7.2, then changed mxIsLogicalScalar by mxIsLogical in the
file callbackfunctions.cpp
In order to link properly, I had to add the -fPIC option to the CXXFLAGS
in the matlab interface Makefile.
I run examplelasso without problems, so I believe I am all set with the
installation.
Thanks for your help !!
fernando
-----Original Message-----
From: Peter Carbonetto [mailto:pcarbo at cs.ubc.ca]
Sent: Saturday, July 18, 2009 12:34 AM
To: D'Amato, Fernando (GE, Research)
Cc: ipopt at list.coin-or.org
Subject: Re: [Ipopt] Undeclared mxIsLogicalScalar in Matlab interface
It's possible that this function is not defined in version 7.2 of
Matlab.
If you can upgrade to the latest version, do that, otherwise try
replacing mxIsLogicalScalar with mxIsLogical.
Peter Carbonetto
Ph.D. Candidate
Dept. of Computer Science
University of British Columbia
On Fri, 17 Jul 2009, D'Amato, Fernando (GE, Research) wrote:
> I am installing the matlab interface for ipopt and getting the
> following error when doing "make install"
>
> -o callbackfunctions.o -c callbackfunctions.cpp
> callbackfunctions.cpp: In member function `bool
> CallbackFunctions::iterCallback(int, double, const mxArray*&) const':
> callbackfunctions.cpp:404: error: `mxIsLogicalScalar' was not declared
> in this scope
> callbackfunctions.cpp:404: warning: unused variable
'mxIsLogicalScalar'
> make: *** [callbackfunctions.o] Error 1
>
> I am using Ipopt 3.6.0, gcc 3.4.6, matlab 7.2 on a linux 64-bit
> platform.
> The C++, C and FORTRAN examples from the ipopt installation have
> passed without errors.
>
> Does anyone know how to solve this issue?
> Thanks
> fernando
>
>
More information about the Ipopt
mailing list