[Ipopt] "make" ERROR
Stefan Vigerske
stefan at math.hu-berlin.de
Wed Apr 24 06:47:02 EDT 2013
Hi,
are you sure that you got Ipopt 3.10.3?
(http://www.coin-or.org/download/source/Ipopt/Ipopt-3.10.3.tgz)
The problem you report has been fixed 23 months ago, even before the
3.10 series started.
This is how IpSmartPtr.hpp:340 should look like:
https://projects.coin-or.org/Ipopt/browser/releases/3.10.3/Ipopt/src/Common/IpSmartPtr.hpp#L340
If you still have a NULL instead of a 0, then you do not have 3.10.x
Stefan
On 04/24/2013 12:18 PM, m khoshbakht wrote:
>
> Hi,
>
> I
> download the tarbal Ipopt-3.10.3.tgz extracted it then ran
> “./configure” (according to the steps in the “Compiling and
> Installing Ipopt”), the last output line of the script was
> “main
> configuration of ipopt successful”, but when I run “make” I
> see
> this error:
>
> cc1plus:
> warning: command line option '-Wimplicit' is valid for C/ObjC
> but not
> for C++ [enabled by default]
>
>
> In
> file included from IpJournalist.hpp:15:0,
>
>
> from
> IpDebug.cpp:12:
>
>
> IpSmartPtr.hpp:
> In constructor 'Ipopt::SmartPtr<T>::SmartPtr()':
>
>
> IpSmartPtr.hpp:340:12:
> error: 'NULL' was not declared in this scope
>
>
> IpSmartPtr.hpp:
> In copy constructor 'Ipopt::SmartPtr<T>::SmartPtr(const
> Ipopt::SmartPtr<T>&)':
>
>
> IpSmartPtr.hpp:359:12:
> error: 'NULL' was not declared in this scope
>
>
> IpSmartPtr.hpp:
> In constructor 'Ipopt::SmartPtr<T>::SmartPtr(T*)':
>
>
> IpSmartPtr.hpp:379:12:
> error: 'NULL' was not declared in this scope
>
>
> IpSmartPtr.hpp:
> In member function 'Ipopt::SmartPtr<U>&
> Ipopt::SmartPtr<T>::SetFromRawPtr_(T*)':
>
>
> IpSmartPtr.hpp:475:16:
> error: 'NULL' was not declared in this scope
>
>
> IpSmartPtr.hpp:
> In member function 'void
> Ipopt::SmartPtr<T>::ReleasePointer_()':
>
>
> IpSmartPtr.hpp:518:14:
> error: 'NULL' was not declared in this scope
>
>
> IpSmartPtr.hpp:
> In function 'bool Ipopt::IsNull(const
> Ipopt::SmartPtr<U>&)':
>
>
> IpSmartPtr.hpp:557:31:
> error: 'NULL' was not declared in this scope
>
>
> make[2]:
> *** [IpDebug.lo] Error 1
>
>
> make[2]:
> Leaving directory `/home/m12345/CoinIpopt/Ipopt/src/Common'
>
>
> make[1]:
> *** [all-recursive] Error 1
>
>
> make[1]:
> Leaving directory `/home/m12345/CoinIpopt/Ipopt'
>
>
> make:
> *** [all-recursive] Error 1
>
>
> I
> tested the options of the appendix D but my problem did not
> solve, my
> OS is a 64 bit-ubuntu 12.10.
>
> how can I solve this problem? Please guide me,
>
>
>
> thanks
> a lot.
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>
More information about the Ipopt
mailing list