This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: How to produce shared libraries with gcj?
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Everton da Silva Marques <everton at lab dot ipaccess dot diveo dot net dot br>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 21 Oct 2003 17:52:54 -0400 (EDT)
- Subject: Re: How to produce shared libraries with gcj?
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