public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCJ Help needed
@ 2005-06-24 14:35 Ananthasayanam Vasudevan
  0 siblings, 0 replies; 2+ messages in thread
From: Ananthasayanam Vasudevan @ 2005-06-24 14:35 UTC (permalink / raw)
  To: gcc-help



Hello,

I was curious to try out a sample HelloWorld written in SWT and compile
it with GCJ on Linux. 


gcj -- CLASSPATH =
/usr/local/eclipse/plugins/org.eclipse.swt.motif_3.0.2/ws/motif/swt.jar 
  -c Hello.java -o Hello.o

I was able to get Hello.o. But when I do the next step to get a native
aplication:

gcj -fjni --main=Hello -o Hello Hello.o
/usr/local/eclipse/plugins/org.eclipse.swt.motif_3.0.2/ws/motif/swt.jar 

I got errors as below:

org/eclipse/swt/graphics/ImageLoader.java: In class
'org.eclipse.swt.graphics.ImageLoader':
org/eclipse/swt/graphics/ImageLoader.java: In method
'org.eclipse.swt.graphics.ImageLoader.load(java.lang.String)':
org/eclipse/swt/graphics/ImageLoader.java:146: error: verification error
at PC=40
org/eclipse/swt/graphics/ImageLoader.java:146: error: label part of
different subroutines

Any idea on how to handle this error. Any help is greatly appreciated.

Thanks
Ananth

^ permalink raw reply	[flat|nested] 2+ messages in thread

* gcj help needed
@ 2003-05-12 12:43 John Marks
  0 siblings, 0 replies; 2+ messages in thread
From: John Marks @ 2003-05-12 12:43 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'


[-- Attachment #1.1: Type: text/plain, Size: 723 bytes --]

I'm a complete gnu/gcc neophyte, so I don't even know where to start.

 

I've read just about all the on-line documentation I've been able to find
and still can't figure out

why I can't get a fairly simple gcj compile to work. Others have obviously
done this, and my

problem is probably so basic I'd be laughed out of most mailing lists.

 

I just need someone to point me to gcj information sources beyond the
on-line manual

and Per Bothner's article.

 

I'm using gcc 3.2.3 under cygwin 1.3.19-1 on Windows XP.

 

John Marks

Predictive Media, Inc.

689 Massachusetts Ave.

Cambridge, MA 02139

Office: 617-575-4792

FAX:   617-575-4793

E-Mail: jmarks@predictivemedia.com <mailto:jmarks@predictivemedia.com> 

 


[-- Attachment #1.2: Type: text/html, Size: 3618 bytes --]

[-- Attachment #2: John Marks.vcf --]
[-- Type: application/octet-stream, Size: 413 bytes --]

BEGIN:VCARD
VERSION:2.1
N:Marks;John
FN:John Marks
ORG:Predictive Networks
TITLE:Senior Software Engineer
TEL;WORK;VOICE:(617) 575 4792
ADR;WORK:;Cambridge;689 Mass Ave;Cambridge;MA;02139;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Cambridge=0D=0A689 Mass Ave=0D=0ACambridge, MA 02139=0D=0AUnited States of A=
merica
EMAIL;PREF;INTERNET:JMarks@predictivemedia.com
REV:20030130T142403Z
END:VCARD

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-24 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 14:35 GCJ Help needed Ananthasayanam Vasudevan
  -- strict thread matches above, loose matches on Subject: below --
2003-05-12 12:43 gcj help needed John Marks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).