[ADOL-C-tickets] [A Package for Automatic Differentiation of Algorithms Written in C/C++] #8: call of overloaded 'fmax(double&, double&)' is ambiguous
A Package for Automatic Differentiation of Algorithms Written in C/C++
coin-trac at coin-or.org
Fri Oct 1 08:54:12 EDT 2010
#8: call of overloaded 'fmax(double&, double&)' is ambiguous
-------------------+--------------------------------------------------------
Reporter: lorenz | Owner: awalther
Type: defect | Status: new
Priority: major | Component: libadolc
Version: | Resolution:
Keywords: |
-------------------+--------------------------------------------------------
Comment (by kulshres):
We need to look into this for the long run and define these selectively
for certain compilers, but for the short run you may use either one of the
following two workarounds:
1. use any one of -ansi or -std=c90 switches in your compiler commands.
Then gcc does not define fmin and fmax of its own.
2. remove the fmin(const double&, const double&) declaration and
defintions from your copy of adouble.h
--
Ticket URL: <https://projects.coin-or.org/ADOL-C/ticket/8#comment:2>
A Package for Automatic Differentiation of Algorithms Written in C/C++ <https://projects.coin-or.org/ADOL-C>
A Package for Automatic Differentiation of Algorithms Written in C/C++
More information about the ADOL-C-tickets
mailing list