Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <383F1EAC.B4E9B497@ime.unicamp.br> Date: Fri, 26 Nov 1999 21:58:36 -0200 From: =?iso-8859-1?Q?Andr=E9?= de Oliveira Kovacs X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: IOTest Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I had some problems when I tried to compile the code below with gcj, the error message is too below. What's happening? import java.io.*; public class IOTest { public static void main(String args[]) { try { FileInputStream fis = new FileInputStream(new File("IOTest.java")); int c; while((c = fis.read()) != -1) { System.out.print(String.valueOf((char)c)); } } catch(Exception e) { e.printStackTrace(); } } } Error Message: D:\Temp>gcj -CLASSPATH .;c:\usr\local\share\libgcj.zip --main=IOTest -o IOTest IOTest.class C:\WINDOWS\TEMP/ccNU0XiH.o: In function `IOTest::main(JArray *)': //D/Temp/IOTest.class(.text+0x1ea): undefined reference to `L17' collect2: ld returned 1 exit status -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com