This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Thu, 8 Apr 1999, Denis Y. Pershin wrote:
> Hello all,
>
> I just get the latest egcs and libgcj sources from cvs.
> I have compiled them, installed in /opt
>
> Than I wrote a simple app:
>
> bash-2.02$ cat Main.java
> public class Main {
> public static void main(String argv[]) {
> System.out.println("Hello world");
> }
> }
>
> Than I compiled it:
> gcj --main=Main Main.java -o m -lpthread
>
> And successully get a core :-)))
> bash-2.02$ ./m
> Segmentation fault (core dumped)
Do you have your CLASSPATH set? If so, try unset'ing it.
I got some strange Out of memory error on a very similar :) HelloWorld
program. Recompiling without classpath solved this for me.
Does it by the way actually say on the gcj webpages that gcj is not
included in any egcs release version?
I read somewhere that it wasn't included in releases up to 1.1.1, and
naturally assumed it was in 1.1.2 ... I spent some time trying to figure
out why I couldn't configure egcs to include gcj :)
/Urban
---
Urban Widmark urban@svenskatest.se
Svenska Test AB +46 90 71 71 23