This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: build error (3)


On Friday, December 01, 2000 at 11:25, Andrew Haley wrote:

>  > This time I got some warnings about different declarations when building
>  > libgcj. The error appears when compiling libjava/java/lang/natMath.cc
>  > with c++:
>  > 
>  > ../../../libgcj-snapshot-2000-11-23/libjava/java/lang/fdlibm.h:58: declaration 
>  >    of `double acos(double)' throws different exceptions
>  > /usr/include/bits/mathcalls.h:54: than previous declaration `double 
>  >    acos(double) throw ()'
> 
> This is odd.  We really don't want to be including
> /usr/include/bits/mathcalls.h.  It looks to me like it's probably
> pulled in when we include stdio.h, but I can see absolutely no good
> reason why we need that.  Maybe it's included via stdlib.h.
> 
> Can you try without the #include <stdio.h> ?

You mean stdlib.h? I can't find stdio.h being included anywhere.
Removing stdlib.h didn't help (it had not effect).

I think the problem is here:

natMath.cc	includes	fdlibm.h
fdlibm.h	includes	mprec.h
mprec.h		includes	<math.h>
<math.h>	includes	<bits/mathcalls.h>

Oskar (osk@hem.passagen.se)

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