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]

Re: Undefined references for SWT


Harpal Grover writes:
 > Hi,
 > 
 > I am using GCJ for MingW  GCC/GCJ 4.3 (gcj-eclipse-merge-branch).
 > 
 > I am getting the following errors when I attempt to compile not only
 > my java code, but referenced jars as well:
 > 
 > 
 > 
 > org/vafada/swtcalendar/SWTCalendar.o:SWTCalendar.java:(.data+0xc28):
 > undefined reference to
 > `org::eclipse::swt::widgets::Control::isActive()'
 > 
 > org/vafada/swtcalendar/SWTCalendar.o:SWTCalendar.java:(.data+0xc2c):
 > undefined reference to
 > `org::eclipse::swt::widgets::Control::isEnabled()'
 > 
 > org/vafada/swtcalendar/SWTCalendar.o:SWTCalendar.java:(.data+0xc30):
 > undefined reference to
 > `org::eclipse::swt::widgets::Control::isFocusControl()'
 > 
 > org/vafada/swtcalendar/SWTCalendar.o:SWTCalendar.java:(.data+0xc34):
 > undefined reference to
 > `org::eclipse::swt::widgets::Control::isFocusAncestor(org::eclipse::swt::widgets::Control*)'
 > 
 > org/vafada/swtcalendar/SWTCalendar.o:SWTCalendar.java:(.data+0xc38):
 > undefined reference to
 > `org::eclipse::swt::widgets::Control::isReparentable()'
 > 
 > org/vafada/swtcalendar/SWTCalendar.o:SWTCalendar.java:(.data+0xc3c):
 > undefined reference to
 > `org::eclipse::swt::widgets::Control::isShowing()'
 > I have included the swt.jar that MingW provides in the classpath. I
 > have also used the -fjni flag. I must be missing something here. Can
 > anyone give me any pointers?

You haven't give us enough information.  In which jar is
org.eclipse.swt.windgets.Control?  Did you compile it?  What compile
args did you use?

Andrew.


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