Patch: Implicit declaration errors
Bryce McKinlay
bryce@albatross.co.nz
Wed May 31 04:05:00 GMT 2000
Building the latest libgcj with the latest gcc gives several "implicit
declaration" errors like the following:
c++ -DHAVE_CONFIG_H -I. -I../../../libjava -I./include
-I../../../libjava -Iinclude -I../../../libjava/include
-I../../../libjava/../boehm-gc -I./../boehm-gc -DLINUX_THREADS=1
-D_REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1
-DJAVA_FINALIZATION=1 -I../../../libjava/libltdl -I./libltdl
-I../../../libjava/../compat-include -I../../../libjava/../zlib
-I../../../libjava/../libffi/include -I../libffi/include -fno-rtti
-fvtable-thunks -fasynchronous-exceptions -D__NO_MATH_INLINES
-ffloat-store -W -Wall -D_GNU_SOURCE -g -O2 -fvtable-thunks
-D_GNU_SOURCE -Wp,-MD,.deps/exception.pp -c -fPIC -DPIC
../../../libjava/exception.cc -o .libs/exception.lo
In file included from ../../../libjava/exception.cc:19:
../../../libjava/gcj/cni.h: In function `java::lang::String
*JvNewStringLatin1 (const char *)':
../../../libjava/gcj/cni.h:63: implicit declaration of function
`strlen'
The following patch fixes these.
ok to check in?
regards
[ bryce ]
More information about the Java-patches
mailing list