This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Is gcj from gcc 3.3 required to build libswt.so for gcj - SWT integration?
- From: chris burdess <dog at bluezoo dot org>
- To: "Kevin B. Hendricks" <kevin dot hendricks at sympatico dot ca>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 18 Apr 2003 08:10:51 +0100
- Subject: Re: Is gcj from gcc 3.3 required to build libswt.so for gcj - SWT integration?
- References: <200304172345.07842.kevin.hendricks@sympatico.ca>
Kevin B. Hendricks wrote:
> I seem to be unable to compile just one file:
>
> org.eclipse.swt.custom.StyledText.java
>
>
> All of the others compile fine.
>
>
> No matter what I try I end up with this error message:
>
> gcj -O2 -fPIC -c org/eclipse/swt/custom/StyledText.java -o
> org/eclipse/swt/custom/StyledText.o
> ./org/eclipse/swt/custom/StyledText.java:77: Class
> `org.eclipse.swt.custom.StyledText' already defined in
> org/eclipse/swt/custom/StyledText.java:77.
> public class StyledText extends Canvas {
> ^
> ./org/eclipse/swt/custom/StyledText.java:157: confused by earlier errors,
> bailing out
> make: *** [org/eclipse/swt/custom/StyledText.o] Error 1
>
>
> But StyledText class is only defined once in that file (and it is not
> defined any place else in the swt java files.
i also have this problem with gcj on powerpc linux. in my case it was
worked around by:
1. *not* specifying the source directory with the -classpath option if
the source file is in the list of files to be compiled, and
2. using fully-qualified class names in all imports for packages to be
compiled (packages in existing jarfiles are fine).
--
chris burdess