Problem when compiling with static flag
Adrian Custer
acuster@nature.berkeley.edu
Mon Feb 5 16:02:00 GMT 2001
Hello everyone,
I finally got today's checkout (Monday about 5PM GMT) of gcc to compile.
It runs hello world fine but not if I include --static. Here's what it
gives:
[acuster@tsetse temp]$ gcj -static --main=HelloWorld -o HelloWorld
HelloWorld.java
/soft/CVS/TEST/bin/../lib/gcc-lib/i586-pc-linux-gnu/2.97/libgcc.a(_eh.o): In function `__eh_rtime_match':
/soft/CVS/gccbuild/gcc/../../gcc/gcc/libgcc2.c(.text+0x7c5): undefined
reference to `fwrite'
collect2: ld returned 1 exit status
[acuster@tsetse temp]$
Note that I had lots of trouble building the compiler from probably iffy
memory. The error makes this seem more structural. Is the --static flag
unsupported?
thanks,
adrian
More information about the Java
mailing list