[Ipopt-tickets] [Ipopt] #271: issue with IpRandon01
Ipopt
coin-trac at coin-or.org
Tue Apr 26 11:50:56 EDT 2016
#271: issue with IpRandon01
---------------------+------------------------
Reporter: andreasw | Owner: ipopt-team
Type: defect | Status: new
Priority: normal | Component: Ipopt
Version: 3.12 | Severity: normal
Keywords: |
---------------------+------------------------
There is an issue with compiling version 3.12.4 on Ubuntu 14.04.
{{{HAVE_STD__RAND}}} is not set properly. In {{{IpUtils.cpp}}} I find the
comment
{{{
# else
/* this is a workaround for gcc 4.8.3, for which the test for rand()
that our old configure sets up does not work */
# if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 8 &&
__GNUC_PATCHLEVEL__ >= 2
return Number(rand())/Number(RAND_MAX);
}}}
but it doesn't seem to help
This is my compiler version:
{{{
g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
}}}
As a workaround I added {{{-DHAVE_STD__RAND}}} to {{{ADD_CXXFLAGS}}}
--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/271>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list