[ADOL-C] Problem compiling with g++ 4.4.7 ?

Brad Bell bradbell at seanet.com
Thu Dec 18 09:53:56 EST 2014


I am experiencing some difficulty testing adolc on the coin jenkins test 
system,which uses g++ 4.4.7.
(This problem does not seem to exist on my Fedora system running with 
g++ 4.8.3.)

When I use ADOL-C-2.5.2, I get the error
     ../../../ADOL-C/include/adolc/adouble.h:74: error: 
'badouble::badouble()' is protected
See the end of the page
     http://jenkins.coin-or.org:8080/job/cppad_trunk/447/console
for the complete error message.

When I use ADOL-C-2.4.1, the error goes away; see
     https://projects.coin-or.org/CppAD/changeset/3484
     http://jenkins.coin-or.org:8080/job/cppad_trunk/448/changes
     http://jenkins.coin-or.org:8080/job/cppad_trunk/448/console

A more extensive listing of the error message is:

In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:64,
                  from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41,
                  from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ios:41,
                  from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ostream:40,
                  from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/iostream:40,
                  from ../../../ADOL-C/include/adolc/adouble.h:30,
                  from ../../../ADOL-C/src/adouble.cpp:24:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/type_traits.h: In instantiation of '__gnu_cxx::__promote_2<adouble, badouble>':
../../../ADOL-C/src/adouble.cpp:1741:   instantiated from here
../../../ADOL-C/include/adolc/adouble.h:74: error: 'badouble::badouble()' is protected

... snip ...






More information about the ADOL-C mailing list