[Ipopt] Having trouble obtaining mex file using mavericks

Senses,Begum bgmsenses at ufl.edu
Wed May 7 14:41:43 EDT 2014


Hello everyone,

I am having trouble obtaining mex files. I just changed my operating 
system to mavericks. I updated my Xcode to version 5.1.1. Before making 
these changes everything was working perfectly fine. I assume that the 
gfortran version and configuration script that I am currently using 
would be helpful understanding the problem therefore I will give them in 
detail. Gfortran version information is given as follows:

Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin13/4.8.2/lto-wrapper
Target: x86_64-apple-darwin13
Configured with: ../gcc-4.8.2/configure --prefix=/usr/local/gfortran 
--with-gmp=/Users/fx/devel/gcc/deps-static/x86_64 
--enable-languages=c,c++,fortran,objc,obj-c++ 
--build=x86_64-apple-darwin13
Thread model: posix
gcc version 4.8.2 (GCC)

I am using the following configuration script that Tony recommended me:

1) Create the build directory with a share subdirectory, and copy 
Ipopt/contrib/MatlabInterface/MatlabInterface.site to 
build/share/config.site.

2) Run the configure script ./configure --enable-matlab-ma57 CC=gcc 
--enable-matlab-static \
   --with-blas='-framework vecLib' --with-lapack='-framework vecLib'

3) make
4) make install

5) Then in build/Ipopt/contrib/MatlabInterface/src/Makefile, on the 
LDFLAGS line, comment out
   -static-libgcc -static-libstdc++

6) On LIBS = <...> line, delete -lgcc_eh and
   -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin11/4.6.2/../../..

7) make
8) make install

All of these step were working perfectly fine until I change my 
operating system and upgrade my Xcode 4. to Xcode 5. Now I have trouble 
obtaining the mex file. When I perform the 7th step I get the following 
errors


Undefined symbols for architecture x86_64:
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::rfind(char const*, unsigned long, unsigned 
long) const", referenced from:
       Ipopt::RegisteredOptions::GetOption(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) in 
libipopt.a(IpRegOptions.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::compare(char const*) const", referenced 
from:
       IpoptOptions::useQuasiNewton() const in ipoptoptions.o
       IpoptOptions::useDerivChecker() const in ipoptoptions.o
       IpoptOptions::userScaling() const in ipoptoptions.o
       Ipopt::TNLPAdapter::ProcessOptions(Ipopt::OptionsList const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::IpoptApplication::Initialize(std::__1::basic_istream<char, 
std::__1::char_traits<char> >&) in libipopt.a(IpIpoptApplication.o)
       Ipopt::IpoptApplication::Initialize(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >) in 
libipopt.a(IpIpoptApplication.o)
       Ipopt::IpoptApplication::Initialize() in 
libipopt.a(IpIpoptApplication.o)
       ...
   "std::__1::__vector_base_common<true>::__throw_length_error() const", 
referenced from:
       Ipopt::TNLPAdapter::GetSpaces(Ipopt::SmartPtr<Ipopt::VectorSpace 
const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::SymMatrixSpace const>&) in 
libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::FinalizeSolution(Ipopt::SolverReturn, 
Ipopt::Vector const&, Ipopt::Vector const&, Ipopt::Vector const&, 
Ipopt::Vector const&, Ipopt::Vector const&, Ipopt::Vector const&, 
Ipopt::Vector const&, double, Ipopt::IpoptData const*, 
Ipopt::IpoptCalculatedQuantities*) in libipopt.a(IpTNLPAdapter.o)
       std::__1::vector<double, std::__1::allocator<double> 
 >::__append(unsigned long) in libipopt.a(IpTNLPAdapter.o)
       std::__1::vector<double, std::__1::allocator<double> 
 >::vector(std::__1::vector<double, std::__1::allocator<double> > const&) 
in libipopt.a(IpTNLPAdapter.o)
       std::__1::vector<int, std::__1::allocator<int> 
 >::__append(unsigned long) in libipopt.a(IpTNLPAdapter.o)
       std::__1::vector<int, std::__1::allocator<int> 
 >::vector(std::__1::vector<int, std::__1::allocator<int> > const&) in 
libipopt.a(IpTNLPAdapter.o)
       std::__1::vector<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::allocator<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > > 
 >::__append(unsigned long) in libipopt.a(IpTNLPAdapter.o)
       ...
   "std::__1::locale::has_facet(std::__1::locale::id&) const", 
referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
   "std::__1::locale::use_facet(std::__1::locale::id&) const", 
referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::imbue(std::__1::locale const&) in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::ios_base::getloc() const", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::erase(unsigned long, unsigned long)", 
referenced from:
       Ipopt::IpoptAlgorithm::Optimize(bool) in libipopt.a(IpIpoptAlg.o)
       Ipopt::OptionsList::PrintList(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >&) const in 
libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::PrintUserOptions(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >&) const in 
libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::readnexttoken(std::__1::basic_istream<char, 
std::__1::char_traits<char> >&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >&) in 
libipopt.a(IpOptionsList.o)
       Ipopt::IpoptData::Initialize(Ipopt::Journalist const&, 
Ipopt::OptionsList const&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) in 
libipopt.a(IpIpoptData.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::__init(char const*, unsigned long)", 
referenced from:
       Ipopt::MatlabJournal::MatlabJournal(Ipopt::EJournalLevel) in 
matlabjournal.o
       Ipopt::MatlabJournal::MatlabJournal(Ipopt::EJournalLevel) in 
matlabjournal.o
       IpoptOptions::setOption(char const*, mxArray_tag const*) in 
ipoptoptions.o
       IpoptOptions::useQuasiNewton() const in ipoptoptions.o
       IpoptOptions::useDerivChecker() const in ipoptoptions.o
       IpoptOptions::userScaling() const in ipoptoptions.o
       IpoptOptions::printLevel() const in ipoptoptions.o
       ...
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::__init(char const*, unsigned long, unsigned 
long)", referenced from:
       std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > std::__1::operator+<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >(char const*, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > std::__1::operator+<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >(char const*, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpAlgBuilder.o)
       std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > std::__1::operator+<char, 
std::__1::char_traits<char>, std::__1::allocator<char> 
 >(std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&, char const*) in 
libipopt.a(IpLowRankUpdateSymMatrix.o)
       Ipopt::OptionsList::SetStringValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&, bool, bool) in 
libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::SetNumericValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, double, 
bool, bool) in libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::SetIntegerValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, 
bool, bool) in libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::GetNumericValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
double&, std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) const in libipopt.a(IpOptionsList.o)
       ...
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::__init(unsigned long, char)", referenced 
from:
       std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > 
std::__1::__pad_and_output<char, std::__1::char_traits<char> 
 >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, 
char const*, char const*, char const*, std::__1::ios_base&, char) in 
libipopt.a(IpJournalist.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::append(char const*)", referenced from:
       Ipopt::TNLPAdapter::TNLPAdapter(Ipopt::SmartPtr<Ipopt::TNLP>, 
Ipopt::SmartPtr<Ipopt::Journalist const>) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::ProcessOptions(Ipopt::OptionsList const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::GetSpaces(Ipopt::SmartPtr<Ipopt::VectorSpace 
const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::SymMatrixSpace const>&) in 
libipopt.a(IpTNLPAdapter.o)
       
Ipopt::TNLPAdapter::CheckDerivatives(Ipopt::TNLPAdapter::DerivativeTestEnum, 
int) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::DetermineDependentConstraints(int, int 
const*, double const*, double const*, double const*, double const*, int, 
int const*, std::__1::list<int, std::__1::allocator<int> >&) in 
libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::GetBoundsInformation(Ipopt::Matrix const&, 
Ipopt::Vector&, Ipopt::Matrix const&, Ipopt::Vector&, Ipopt::Matrix 
const&, Ipopt::Vector&, Ipopt::Matrix const&, Ipopt::Vector&) in 
libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::FinalizeSolution(Ipopt::SolverReturn, 
Ipopt::Vector const&, Ipopt::Vector const&, Ipopt::Vector const&, 
Ipopt::Vector const&, Ipopt::Vector const&, Ipopt::Vector const&, 
Ipopt::Vector const&, double, Ipopt::IpoptData const*, 
Ipopt::IpoptCalculatedQuantities*) in libipopt.a(IpTNLPAdapter.o)
       ...
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::append(char const*, unsigned long)", 
referenced from:
       std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > std::__1::operator+<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >(char const*, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpIpoptApplication.o)
       Ipopt::IpoptAlgorithm::AcceptTrialPoint() in 
libipopt.a(IpIpoptAlg.o)
       std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > std::__1::operator+<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >(char const*, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpAlgBuilder.o)
       std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > std::__1::operator+<char, 
std::__1::char_traits<char>, std::__1::allocator<char> 
 >(std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&, char const*) in 
libipopt.a(IpLowRankUpdateSymMatrix.o)
       Ipopt::OptionsList::SetStringValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&, bool, bool) in 
libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::SetNumericValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, double, 
bool, bool) in libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::SetIntegerValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, 
bool, bool) in libipopt.a(IpOptionsList.o)
       ...
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::assign(char const*)", referenced from:
       Ipopt::TNLPAdapter::ProcessOptions(Ipopt::OptionsList const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::AlgorithmBuilder::BuildBasicAlgorithm(Ipopt::Journalist 
const&, Ipopt::OptionsList const&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) in 
libipopt.a(IpAlgBuilder.o)
       Ipopt::RegisteredOption::OutputDescription(Ipopt::Journalist 
const&) const in libipopt.a(IpRegOptions.o)
       Ipopt::RegisteredOption::OutputLatexDescription(Ipopt::Journalist 
const&) const in libipopt.a(IpRegOptions.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::push_back(char)", referenced from:
       Ipopt::OptionsList::readnexttoken(std::__1::basic_istream<char, 
std::__1::char_traits<char> >&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >&) in 
libipopt.a(IpOptionsList.o)
       Ipopt::RegisteredOption::OutputLatexDescription(Ipopt::Journalist 
const&) const in libipopt.a(IpRegOptions.o)
       
Ipopt::RegisteredOption::MakeValidLatexString(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >&) const in libipopt.a(IpRegOptions.o)
       Ipopt::RegisteredOption::MakeValidLatexNumber(double) const in 
libipopt.a(IpRegOptions.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&)", 
referenced from:
       Ipopt::TNLPAdapter::TNLPAdapter(Ipopt::SmartPtr<Ipopt::TNLP>, 
Ipopt::SmartPtr<Ipopt::Journalist const>) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::ProcessOptions(Ipopt::OptionsList const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::GetSpaces(Ipopt::SmartPtr<Ipopt::VectorSpace 
const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::SymMatrixSpace const>&) in 
libipopt.a(IpTNLPAdapter.o)
       
Ipopt::TNLPAdapter::CheckDerivatives(Ipopt::TNLPAdapter::DerivativeTestEnum, 
int) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::DetermineDependentConstraints(int, int 
const*, double const*, double const*, double const*, double const*, int, 
int const*, std::__1::list<int, std::__1::allocator<int> >&) in 
libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::GetBoundsInformation(Ipopt::Matrix const&, 
Ipopt::Vector&, Ipopt::Matrix const&, Ipopt::Vector&, Ipopt::Matrix 
const&, Ipopt::Vector&, Ipopt::Matrix const&, Ipopt::Vector&) in 
libipopt.a(IpTNLPAdapter.o)
       Ipopt::TNLPAdapter::FinalizeSolution(Ipopt::SolverReturn, 
Ipopt::Vector const&, Ipopt::Vector const&, Ipopt::Vector const&, 
Ipopt::Vector const&, Ipopt::Vector const&, Ipopt::Vector const&, 
Ipopt::Vector const&, double, Ipopt::IpoptData const*, 
Ipopt::IpoptCalculatedQuantities*) in libipopt.a(IpTNLPAdapter.o)
       ...
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
unsigned long, unsigned long, std::__1::allocator<char> const&)", 
referenced from:
       Ipopt::RegisteredOptions::GetOption(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) in 
libipopt.a(IpRegOptions.o)
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::~basic_string()", referenced from:
       Ipopt::MatlabJournal::MatlabJournal(Ipopt::EJournalLevel) in 
matlabjournal.o
       Ipopt::MatlabJournal::MatlabJournal(Ipopt::EJournalLevel) in 
matlabjournal.o
       IpoptOptions::setOption(char const*, mxArray_tag const*) in 
ipoptoptions.o
       IpoptOptions::useQuasiNewton() const in ipoptoptions.o
       IpoptOptions::useDerivChecker() const in ipoptoptions.o
       IpoptOptions::userScaling() const in ipoptoptions.o
       IpoptOptions::printLevel() const in ipoptoptions.o
       ...
   "std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::operator=(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&)", 
referenced from:
       Ipopt::TNLPAdapter::GetSpaces(Ipopt::SmartPtr<Ipopt::VectorSpace 
const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::VectorSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, 
Ipopt::SmartPtr<Ipopt::SymMatrixSpace const>&) in 
libipopt.a(IpTNLPAdapter.o)
       
std::__1::enable_if<(__is_forward_iterator<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >*>::value) && 
(is_constructible<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::iterator_traits<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> 
 >*>::reference>::value), void>::type 
std::__1::vector<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >, 
std::__1::allocator<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > > 
 >::assign<std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >*>(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >*, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >*) in libipopt.a(IpTNLPAdapter.o)
       Ipopt::OptionsList::SetStringValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&, bool, bool) in 
libipopt.a(IpOptionsList.o)
       
Ipopt::OptionsList::will_allow_clobber(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) const 
in libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::lowercase(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >) const in 
libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::SetNumericValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, double, 
bool, bool) in libipopt.a(IpOptionsList.o)
       Ipopt::OptionsList::SetIntegerValue(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, 
bool, bool) in libipopt.a(IpOptionsList.o)
       ...
   "std::__1::basic_istream<char, std::__1::char_traits<char> >::get()", 
referenced from:
       Ipopt::OptionsList::readnexttoken(std::__1::basic_istream<char, 
std::__1::char_traits<char> >&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >&) in 
libipopt.a(IpOptionsList.o)
   "std::__1::basic_istream<char, std::__1::char_traits<char> 
 >::ignore(long, int)", referenced from:
       Ipopt::OptionsList::readnexttoken(std::__1::basic_istream<char, 
std::__1::char_traits<char> >&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >&) in 
libipopt.a(IpOptionsList.o)
   "std::__1::basic_istream<char, std::__1::char_traits<char> 
 >::~basic_istream()", referenced from:
       construction vtable for std::__1::basic_istream<char, 
std::__1::char_traits<char> >-in-std::__1::basic_ifstream<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_istream<char, std::__1::char_traits<char> 
 >::~basic_istream()", referenced from:
       construction vtable for std::__1::basic_istream<char, 
std::__1::char_traits<char> >-in-std::__1::basic_ifstream<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_istream<char, std::__1::char_traits<char> 
 >::~basic_istream()", referenced from:
       Ipopt::IpoptApplication::Initialize(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >) in 
libipopt.a(IpIpoptApplication.o)
       std::__1::basic_ifstream<char, std::__1::char_traits<char> 
 >::~basic_ifstream() in libipopt.a(IpIpoptApplication.o)
       non-virtual thunk to std::__1::basic_ifstream<char, 
std::__1::char_traits<char> >::~basic_ifstream() in 
libipopt.a(IpIpoptApplication.o)
       non-virtual thunk to std::__1::basic_ifstream<char, 
std::__1::char_traits<char> >::~basic_ifstream() in 
libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_ostream<char, std::__1::char_traits<char> 
 >::flush()", referenced from:
       Ipopt::StreamJournal::FlushBufferImpl() in 
libipopt.a(IpJournalist.o)
   "std::__1::basic_ostream<char, std::__1::char_traits<char> 
 >::sentry::sentry(std::__1::basic_ostream<char, 
std::__1::char_traits<char> >&)", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::basic_ostream<char, std::__1::char_traits<char> 
 >::sentry::~sentry()", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::basic_streambuf<char, std::__1::char_traits<char> 
 >::uflow()", referenced from:
       vtable for std::__1::basic_filebuf<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_streambuf<char, std::__1::char_traits<char> 
 >::xsgetn(char*, long)", referenced from:
       vtable for std::__1::basic_filebuf<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_streambuf<char, std::__1::char_traits<char> 
 >::xsputn(char const*, long)", referenced from:
       vtable for std::__1::basic_filebuf<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_streambuf<char, std::__1::char_traits<char> 
 >::showmanyc()", referenced from:
       vtable for std::__1::basic_filebuf<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_streambuf<char, std::__1::char_traits<char> 
 >::basic_streambuf()", referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
   "std::__1::basic_streambuf<char, std::__1::char_traits<char> 
 >::~basic_streambuf()", referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::~basic_filebuf() in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
   "std::__1::ctype<char>::id", referenced from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::locale::locale(std::__1::locale const&)", referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
   "std::__1::locale::~locale()", referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::codecvt<char, char, __mbstate_t>::id", referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::imbue(std::__1::locale const&) in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::basic_filebuf() in libipopt.a(IpIpoptApplication.o)
   "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced 
from:
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::ios_base::init(void*)", referenced from:
       Ipopt::IpoptApplication::Initialize(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >) in 
libipopt.a(IpIpoptApplication.o)
   "std::__1::ios_base::clear(unsigned int)", referenced from:
       Ipopt::IpoptApplication::Initialize(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >) in 
libipopt.a(IpIpoptApplication.o)
       std::__1::basic_ostream<char, std::__1::char_traits<char> >& 
std::__1::operator<<<std::__1::char_traits<char> 
 >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char 
const*) in libipopt.a(IpJournalist.o)
   "std::__1::basic_ios<char, std::__1::char_traits<char> 
 >::~basic_ios()", referenced from:
       Ipopt::IpoptApplication::Initialize(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >) in 
libipopt.a(IpIpoptApplication.o)
       std::__1::basic_ifstream<char, std::__1::char_traits<char> 
 >::~basic_ifstream() in libipopt.a(IpIpoptApplication.o)
       non-virtual thunk to std::__1::basic_ifstream<char, 
std::__1::char_traits<char> >::~basic_ifstream() in 
libipopt.a(IpIpoptApplication.o)
       non-virtual thunk to std::__1::basic_ifstream<char, 
std::__1::char_traits<char> >::~basic_ifstream() in 
libipopt.a(IpIpoptApplication.o)
   "std::bad_cast::bad_cast()", referenced from:
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::seekoff(long long, std::__1::ios_base::seekdir, unsigned int) in 
libipopt.a(IpIpoptApplication.o)
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::sync() in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::underflow() in libipopt.a(IpIpoptApplication.o)
       std::__1::basic_filebuf<char, std::__1::char_traits<char> 
 >::overflow(int) in libipopt.a(IpIpoptApplication.o)
   "typeinfo for std::__1::basic_istream<char, 
std::__1::char_traits<char> >", referenced from:
       construction vtable for std::__1::basic_istream<char, 
std::__1::char_traits<char> >-in-std::__1::basic_ifstream<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
       typeinfo for std::__1::basic_ifstream<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "typeinfo for std::__1::basic_streambuf<char, 
std::__1::char_traits<char> >", referenced from:
       typeinfo for std::__1::basic_filebuf<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "non-virtual thunk to std::__1::basic_istream<char, 
std::__1::char_traits<char> >::~basic_istream()", referenced from:
       construction vtable for std::__1::basic_istream<char, 
std::__1::char_traits<char> >-in-std::__1::basic_ifstream<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
   "non-virtual thunk to std::__1::basic_istream<char, 
std::__1::char_traits<char> >::~basic_istream()", referenced from:
       construction vtable for std::__1::basic_istream<char, 
std::__1::char_traits<char> >-in-std::__1::basic_ifstream<char, 
std::__1::char_traits<char> > in libipopt.a(IpIpoptApplication.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)

     mex: link of ' "ipopt.mexmaci64"' failed.


When I search the differences between Xcode 4 and Xcode 5 I learned 
that Xcode 5 has removed support for gcc, such that gcc is no longer 
actually the GNU Compiler Collection, but is symlinked to the  clang 
compiler. If I want to use you need to use libstdc++, and not the 
clang++ default of libc++ via xcode. One webpage recommends adding link 
flags -stdlib=libstdc++ -mmacosx-version-min=10.6. 
(https://support.enthought.com/entries/26184115-GCC-Clang-and-Cython-in-OS-X-10-9-Mavericks) 
I tried adding these flags to linker flags in the mex file Makefile I 
am still getting the same problem.

Does anybody know a solution to my problem?

Thank you.

-- 
Senses, Begum


More information about the Ipopt mailing list