Creating a native java application using swt and Linux

Eric Harlow linuxgeek@yahoo.com
Sat May 31 06:53:00 GMT 2003


I could use some help figuring out what I'm doing
wrong. 
I'm compiling swt using gcj - some modules with -fjni
and some not depending on if they have native calls. 
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)'
./libswt.so: undefined reference to
`org::eclipse::swt::internal::gtk::OS::gtk_window_move(int,
int, int)'
and a whole lot more - all from
org::eclipse::swt::internal::gtk::OS
The OS.java is compiled -fjni and my link with
HelloWorld looks like: 
 gcj --main=Hello -o Hello Hello.o -L. -lswt -lgtk
`pkg-config gtk+-2.0 --libs`
Granting the -lgtk isn't needed since the pkg-config
should get it, but it doesn't appear to be. It seems
like the compiler is having trouble linking with gtk+
- This is RedHat 9 and Gcj 3.2.2 
 
 
Any suggestions?
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /