IOTest
André de Oliveira Kovacs
kovacs@ime.unicamp.br
Fri Nov 26 15:59:00 GMT 1999
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
More information about the Cygwin
mailing list