<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Stefan:<br><br>I commented out the offending code, and the compilation went through. Thanks a lot.<br><br>Krish<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Stefan Vigerske <stefan@math.hu-berlin.de><br>To: ipopt@list.coin-or.org<br>Cc: Krish Krishnan <rkrishnan8216@yahoo.com><br>Sent: Wednesday, May 7, 2008 3:56:14 PM<br>Subject: Re: [Ipopt] Problem Compiling under MSys/MinGW<br><br>
Hi,<br><br>looks for me like your gcc is using the boost library as a stl <br>implementation. The boost might implement the constructor of std::list <br>differently then the normally used implementation.<br><br>The troublemaker seem to be the line<br> std::list<TripletEntry> entry_list(nonzeros);<br>at IpTripletToCSRConverter.cpp:63, where nonzeros is an int.<br>I presume that normally the TripletEntry() constructor is used to create <br>the (empty) elements of the list. But in your case, the list constructor <br>tries to use the TripletEntry::operator=(TripletEntry&) function which <br>is explicitly made private.<br><br>What happens when you comment out line 105 of <br>src/Algorithm/LinearSolvers/IpTripletToCSRConverter.hpp ?<br><br>I doubt that it has something to do with the way MUMPS is provided to Ipopt.<br><br>Best,<br>Stefan<br><br>PS: If that does not work for you, Andreas would like to see you opening <br>a ticket
:-).<br><br><br>> I am trying to compile IpOpt-3.4.0 in Windows under MSys/MinGW. I have gcc <br>> 4.3.0. The ./configure --enable-dos-compile goes through without any problem. <br>> When I invoke make, compilation halts with the following error message:<br>> <br>> c:\program <br>> files\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_list.h:420: <br>> instantiated from 'std::list<Ipopt::TripletToCSRConverter::TripletEntry, <br>> std::allocator<Ipopt::TripletToCSRConverter::TripletEntry> >'<br>> IpTripletToCSRConverter.cpp:63: instantiated from here<br>> IpTripletToCSRConverter.hpp:105: error: 'void <br>> Ipopt::TripletToCSRConverter::TripletEntry::operator=(const <br>> Ipopt::TripletToCSRConverter::TripletEntry&)' is private<br>> c:\program <br>> files\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:209: <br>> error: within
this context<br>> IpTripletToCSRConverter.hpp: In member function 'void <br>> __gnu_cxx::_SGIAssignableConcept<_Tp>::__const_constraints(const _Tp&) [with _Tp <br>> = Ipopt::TripletToCSRConverter::TripletEntry]':<br>> c:\program <br>> files\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:210: <br>> instantiated from 'void __gnu_cxx::_SGIAssignableConcept<_Tp>::__constraints() <br>> [with _Tp = Ipopt::TripletToCSRConverter::TripletEntry]'<br>> c:\program <br>> files\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_list.h:420: <br>> instantiated from 'std::list<Ipopt::TripletToCSRConverter::TripletEntry, <br>> std::allocator<Ipopt::TripletToCSRConverter::TripletEntry> >'<br>> IpTripletToCSRConverter.cpp:63: instantiated from here<br>> IpTripletToCSRConverter.hpp:105: error: 'void <br>>
Ipopt::TripletToCSRConverter::TripletEntry::operator=(const <br>> Ipopt::TripletToCSRConverter::TripletEntry&)' is private<br>> <br>> <br>> Apparently a private function is being called directly. Can someone please help <br>> me here?<br>> <br>> Thank you.<br>> <br>> Krish<br>> <br>> <br>> --------------------------------------------------------------------------------<br>> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. <br>> <<a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ" target="_blank">http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ</a> <br>> ><br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> Ipopt mailing list<br>> <a
ymailto="mailto:Ipopt@list.coin-or.org" href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>> <a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br><br><br>-- <br>Stefan Vigerske<br>Humboldt University Berlin, Numerical Mathematics<br><a href="http://www.math.hu-berlin.de/%7Estefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br></div></div></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>