This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

IOTest


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<java::lang::String*> *)':
//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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]