[ADOL-C] Problems installing cygwin

Kshitij Kulshreshtha kshitij at math.upb.de
Sun Apr 1 12:11:31 EDT 2012


Hi,

This one happens when math.h declares the fmin/fmax functions without
defining the _ISOC99_SOURCE macro. I've failed to find a consistent way
for checking if math.h declares these two functions or not in various
different environments.

You can comment out the lines 71 through 74 in ADOL-C/src/adouble.h and
lines 44 through 60 in ADOL-C src/adouble.cpp



As on 2012-04-01 17:45, bradbell at seanet.com did write:
> OK,
> I installed libtool on the cygwin system in question. Now the error is
> 
>   CXX    fminmax.o
> fminmax.cpp: In function `int main(int, char**)':
> fminmax.cpp:7: error: call of overloaded `fmax(double&, double&)' is
> ambiguous
> /usr/include/math.h:260: note: candidates are: double fmax(double, double)
> ../../ADOL-C/adolc/adouble.h:73: note:                 double fmax(const
> double&, const double&)
> ../../ADOL-C/adolc/adouble.h:329: note:                 adub fmax(const
> badouble&, const badouble&)
> ../../ADOL-C/adolc/adouble.h:330: note:                 adub fmax(double,
> const badouble&)
> ../../ADOL-C/adolc/adouble.h:331: note:                 adub fmax(const
> badouble&, double)
> 
> The system is using
> $ gcc --version
> gcc (GCC) 4.5.3
> 
>> Hi Brad
>>
>> I think you are missing the libtool package in your build environment.
>> That package defines both these macros. Please check.
>>
>> K.K.
>> --
>> Dr. Kshitij Kulshreshtha
>>
>> Sent via Mobile Phone.
>>
>> bradbell at seanet.com wrote:
>>
>> When I try to install adolc, using the command
>> autoreconf -f -i
>> which seems to be necessary if one has the autotools installed, I get the
>> message
>>
>> configure.ac:44: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
>> If this token and others are legitimate, please use m4_pattern_allow.
>> See the Autoconf documentation.
>> configure.ac:45: error: possibly undefined macro: AC_PROG_LIBTOOL
>> autoreconf-2.68: /usr/bin/autoconf-2.68 failed with exit status: 1
>>
>> This is very similar to the discussion
>> http://list.coin-or.org/pipermail/adol-c/2012-March/000806.html
>>
>> But the solution "Version 2.3.0 seems to have removed this difficulty."
>> does not work for me; i.e., I am using ADOL-C-2.3.0.
>>
>>
>> _____________________________________________
>>
>> ADOL-C mailing list
>> ADOL-C at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/adol-c
>>
>>
> 
> 

-- 
Dr. Kshitij Kulshreshtha

Institut für Mathematik,
Universität Paderborn,
Warburger Straße 100,
33098 Paderborn.

Büro: A3.235

Privatanschrift:
Arnikaweg 62
33100 Paderborn.


More information about the ADOL-C mailing list