 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tomasz Ciszkowski Guest
|
Posted: Tue Jul 08, 2003 7:25 am Post subject: Problem z GCJ |
|
|
Czesc,
Mam problem z GCJ-tem pod Linuchem RH8.0
Osluga wyjatkow nie dziala:(
Skompilowalem kawalek najprostrzego kodu
typu "Hello, world" przy pomocy GCJ 3.2.3.
Dla testu wymusilem wyjatek w sekcji try-catch.
Kiedy wyjątek się pojawia program zatrzymuje się
z monitem segmentation fault.
-------------------------------------------
Source: -----------Tester.java
-------------------------------------------
import java.io.*;
public class Tester {
public static void main(String args[]) throws Exception
{
try {
System.out.println("Hello, world!");
throw new Exception("Some error!"); // here it stops
} catch (Exception e) {
e.printStackTrace();
}
}
}
-------------------------------------------
running ....
-------------------------------------------
$ gcj -Wall -g -c Tester.java
$ gcj -Wall -g --main=Tester -o Tester Tester.o
$ ./Tester
Hello, world!
Segmentation fault
-------------------------------------------
Czy ktos ma jakis pomysl jak usprawnic GCJ'ta?
Dzieki za pomoc,
--
Z powazaniem
Tom
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|