libgcj ,OFS1 on alpha

David Pettersson dapet@mai.liu.se
Thu Apr 15 15:02:00 GMT 1999


On 14 Apr 1999, Tom Tromey wrote:
> >>>>> "David" == David Pettersson <dapet@mai.liu.se> writes:
>
...
>> David> Hope someone with a alpha and better knowledge in C++
> David> programming can continue, since the next error occur in C++
> David> code.
>> What is this error?
>> Tom
>
The error dissapered when using Anthony Green's patch instead of my fix to
one of the errors before. But we can take the next instead ... :-)
Current directory is '.../buildlib/alphaev56-dec-osf4.0d/libjava' when
make tries:
c++ -DHAVE_CONFIG_H -I. -I../../../libgcj/libjava -I./include -Iinclude
-I../../../libgcj/libjava/include -I../../../libgcj/libjava/../boehm-gc
-I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1
-DJAVA_FINALIZATION=1 -I../../../libgcj/libjava/../compat-include
-fno-rtti -fvtable-thunks -W -Wall -g -O2 -c -o
java/lang/reflect/natField.o
../../../libgcj/libjava/java/lang/reflect/natField.cc
and get
In file included from
../../../libgcj/libjava/java/lang/reflect/natField.cc:27:
java/lang/Boolean.h:21: parse error before `0'
java/lang/Boolean.h:22: parse error before `1'
../../../libgcj/libjava/java/lang/reflect/natField.cc: In method `class
java::lang::Object * java::lang::reflect::Field::get(java::lang::Class *,
java::lang::Object *)':
../../../libgcj/libjava/java/lang/reflect/natField.cc:257: parse error
before `1'
../../../libgcj/libjava/java/lang/reflect/natField.cc:261: confused by
earlier errors, bailing out
make[2]: *** [java/lang/reflect/natField.o] Error 1
and so on. Since Boolean.h is made by gcjh, and the problem might be in
this program, I include a copy of my Boolean.h below.
I tried also to add -E -dM flags to the command line above, this showed
that TRUE and FALSE are macros with value 1 and 0 which explains the error
messages but does not tell me how to fix the problem.
David
Boolean.h follows
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_lang_Boolean__
#define __java_lang_Boolean__
#pragma interface
#include <java/lang/Object.h>
class java::lang::Boolean : public java::lang::Object
{
public:
 Boolean (jboolean);
 Boolean (java::lang::String *);
 jboolean booleanValue () { return value; }
 jboolean equals (java::lang::Object *);
 static jboolean getBoolean (java::lang::String *);
 jint hashCode ();
 java::lang::String *toString ();
 static java::lang::Boolean *valueOf (java::lang::String *);
 static java::lang::Boolean *FALSE;
 static java::lang::Boolean *TRUE;
 static java::lang::Class *TYPE;
private:
 jboolean value;
};
#endif /* __java_lang_Boolean__ */


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /