Error building libgcj on HP 10.20
Jeff Sturm
jsturm@sigma6.com
Sat Apr 1 00:00:00 GMT 2000
*sigh* my mail agent, or something garbled the patch... use the one
attached to this message instead.
Jeff Sturm wrote:
>> David Scott Urban wrote:
> > The patch did not work. I am still getting the same error.
>> OK. I don't have a HP/UX machine here to test with, so I was guessing a
> little. This time I put the "inline pow(double, int)" into my math.h so
> I can duplicate the error.
>> I discovered that fdlibm.h does the same thing, wrapping the includes
> into a extern "C" block. Both files are patched below. This should
> work on a fresh libgcj tree:
--
Jeff Sturm
jsturm@sigma6.com
Index: fdlibm.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/fdlibm.h,v
retrieving revision 1.2
diff -u -r1.2 fdlibm.h
--- fdlibm.h 1999年06月24日 20:41:47 1.2
+++ fdlibm.h 2000年01月07日 22:13:47
@@ -12,10 +12,6 @@
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <config.h>
#include <stdlib.h>
@@ -47,6 +43,10 @@
/* These typedefs are true for the targets running Java. */
#define _IEEE_LIBM
+
+#ifdef __cplusplus
+extern "C" {
+#endif
/*
* ANSI/POSIX
Index: mprec.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/mprec.h,v
retrieving revision 1.3
diff -u -r1.3 mprec.h
--- mprec.h 1999年07月12日 09:40:07 1.3
+++ mprec.h 2000年01月07日 22:13:48
@@ -26,9 +26,6 @@
dmg@research.att.com or research!dmg
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
#include <config.h>
#include "ieeefp.h"
@@ -51,6 +48,9 @@
#include <sys/config.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
/* ISO C9X int type declarations */
More information about the Java
mailing list