This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to produce shared libraries with gcj?


Is it possible to use gcj to generate a shared library?

This does not work, as there is no 'main' method:

$ 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

What is the recommended way?

Thanks,
Everton



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]