cannot compile libgcj

Per Bothner per@bothner.com
Thu Sep 9 16:45:00 GMT 1999


I don't recall seeing this problem reported before:

c++ -DHAVE_CONFIG_H -I. -I/home/bothner/GNU/libgcj/libjava -I./include -Iinclude -I/home/bothner/GNU/libgcj/libjava/include -I/home/bothner/GNU/libgcj/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I/home/bothner/GNU/libgcj/libjava/../compat-include -I/home/bothner/GNU/libgcj/libjava/../zlib -I/home/bothner/GNU/libgcj/libjava/../libffi/include -I../libffi/include -fno-rtti -fvtable-thunks -ffloat-store -W -Wall -g -O2 -fvtable-thunks -D_GNU_SOURCE -Wp,-MD,.deps/prims.pp -c  -fPIC -DPIC /home/bothner/GNU/libgcj/libjava/prims.cc -o .libs/prims.lo
In file included from java/lang/reflect/Field.h:8,
                 from /home/bothner/GNU/libgcj/libjava/include/java-field.h:15,
                 from /home/bothner/GNU/libgcj/libjava/include/jvm.h:15,
                 from /home/bothner/GNU/libgcj/libjava/prims.cc:21:
java/lang/reflect/AccessibleObject.h:17: use of class template `template <class T> JArray<T>' as expression
java/lang/reflect/AccessibleObject.h:17: parse error before `:'
In file included from /home/bothner/GNU/libgcj/libjava/prims.cc:25:
java/lang/Runtime.h:15: parse error before `:'
java/lang/Runtime.h:16: use of class template `template <class T> JArray<T>' as expression
java/lang/Runtime.h:16: parse error before `:'
java/lang/Runtime.h:16: `java::lang::Runtime::exec(...)' has already been declared in `java::lang::Runtime'

This is with both Gcc and LibGcj fresh out of Cvs, with 'make clean',
and both, and with PATH set to point to where I installed Gcc.
I don't see anything obviously wrong with the gcjh-generated
AccessibleObject.h, so my first inclination is to blame g++.
-- 
	--Per Bothner
bothner@pacbell.net  per@bothner.com   http://www.bothner.com/~per/


More information about the Java mailing list