[Ipopt] clang and ipopt

Brad Bell bradbell at seanet.com
Fri Oct 14 11:46:37 EDT 2016


I am using clang version 3.7.0 (tags/RELEASE_370/final)
to compile Ipopt-3.12.6

I am getting a lot of warnings about implicit conversion from signed 
types to size_t. For example,
../../../../Ipopt/src/Common/IpUtils.cpp:284:26: warning: implicit 
conversion changes signedness: 'long' or int to 'size_t' (aka 'unsigned 
long') [-Wsign-conversion]
     ret = vsnprintf(str, size, format, apcopy);

There are also other warnings. In addition to the fatal error
../../../../Ipopt/src/Common/IpUtils.cpp:182:6: error: "don't have 
function for random number generator"
#    error "don't have function for random number generator"

When  I add the ipopt configure option
     coin_skip_warn_cxxflags=yes'
the warnings and error do not occur.


Are these warning and error messages a problem with the ipopt source 
code, or a problem with clang ?





More information about the Ipopt mailing list