This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

HP-UX 10.20 won't build 3.0-20010611's libstdc++-v3

The problem is that /usr/include/math.h declares:

#    ifdef __cplusplus
     inline double pow(double __d,int __expon) {
         return pow(__d,(double)__expon);
     extern "C" {
#    endif

and this declaration conflicts with c_std/bits/std_cmath.h:

In file included from /home/oliva/src/tool/egcs/libstdc++-v3/include/bits/std_complex.h:43,
                 from /home/oliva/src/tool/egcs/libstdc++-v3/src/
/home/oliva/src/tool/egcs/libstdc++-v3/include/c_std/bits/std_cmath.h: In
   function `double std::pow(double, int)':
/home/oliva/src/tool/egcs/libstdc++-v3/include/c_std/bits/std_cmath.h:419: `double
   std::pow(double, int)' conflicts with previous using declaration `double
   pow(double, int)'

I don't see any change in 3.0 branch since the snapshot that might
have fixed this problem.  Suggestions?

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]