This is the mail archive of the cygwin@sources.redhat.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]

Cygwin, W98 and gcj again


	I just download the last version of cygwin with W98 on a new computer. I 
attempt to use gcj. My last try is made with:
libgcj-2.95.1-win32-0.3.tar.bz2, libgcj.spec and Helloworld.java downloaded 
from http://www.cs.bris.ac.uk/~jb7216/libgcj/

Install and compile :
bunzip2 -c libgcj-2.95.1-win32-0.3.tar.bz2 | tar xfv -
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib
export CLASSPATH=/usr/local/share/libgcj.zip

standard@OEMCOMPUTER /
$ cat Helloworld.java

public class Helloworld {

         public static void main(String[] args) {
                 System.out.println("Hello world");
         }

}
gcj -mno-cygwin --main=Helloworld -o Helloworld Helloworld.java

the result:
$ gcj -mno-cygwin --main=Helloworld -o Helloworld Helloworld.java
/usr/local/lib/libgccgcj.a(_eh.o): In function `eh_context_initialize':
/usr/local/build/gcc-2.95.2/gcc/../../../src/gcc-2.95.2/gcc/libgcc2.c(.text+ 
0x14
2): undefined reference to `InterlockedIncrement@4'
/usr/local/lib/libgccgcj.a(frame.o): In function `init_object_mutex_once':
/usr/local/build/gcc-2.95.2/gcc/../../../src/gcc-2.95.2/gcc/frame.c(.text+0x 
4a):
  undefined reference to `InterlockedIncrement@4'
collect2: ld returned 1 exit status

Somebody can help me?

Christian CORMIER
cormier@u-picardie.fr

--
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]