How to produce shared libraries with gcj?

Jeff Sturm jsturm@one-point.com
Tue Oct 21 21:52:00 GMT 2003


On Tue, 21 Oct 2003, Everton da Silva Marques wrote:
> $ gcj -o dist/lib/libservlet.so obj/servlet/*.o
> /usr/lib/gcc-lib/i486-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
> : undefined reference to `main'
> collect2: ld returned 1 exit status

Use `-shared'.

Jeff



More information about the Java mailing list