This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
IOTest
- To: cygwin at sourceware dot cygnus dot com
- Subject: IOTest
- From: André de Oliveira Kovacs <kovacs at ime dot unicamp dot br>
- Date: Fri, 26 Nov 1999 21:58:36 -0200
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