Undefined references for SWT
Andrew Haley
aph@redhat.com
Sun Feb 11 09:40:00 GMT 2007
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.
More information about the Java
mailing list