This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Creating a native java application using swt and Linux
- From: Per Bothner <per at bothner dot com>
- To: Eric Harlow <linuxgeek at yahoo dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 30 May 2003 23:54:09 -0700
- Subject: Re: Creating a native java application using swt and Linux
- References: <20030531031850.29683.qmail@web41215.mail.yahoo.com>
Eric Harlow wrote:
I'm compiling swt using gcj - some modules with -fjni
and some not depending on if they have native calls.
It would probably be better to compile all of swt with -fjni.
Otherwise, you might miss a class that calls a non-native
method that gets inline - and calls a native. For example.
I've gotten swt to compile and turn into a library.
What I'm getting when I link in "HelloWorld" is
./libswt.so: undefined reference to
`org::eclipse::swt::internal::gtk::OS::gtk_scale_set_draw_value(int,
bool)'
It's looking for a CNI method, so *somwthing* that should have been
compiled with -fjni wasn't.
--
--Per Bothner
per@bothner.com http://per.bothner.com/