delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <20020722204209.47489.qmail@web10107.mail.yahoo.com> |
Date: | Mon, 22 Jul 2002 22:42:09 +0200 (CEST) |
From: | =?iso-8859-1?q?Sylvain=20Petreolle?= <spetreolle AT yahoo DOT fr> |
Subject: | gcj problems with helloworld |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Using gcj to compile a simple program gives non-understandable errors: $ cat PremierProgramme.java //Premier programme Java class PremierProgramme { public static void main (String[] arg) { System.out.println("Ca marche!"); } } $ gcj -c PremierProgramme.java $ echo $? 0 $ gcj PremierProgramme.java -o PremierProgramme /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0xe):PremierProgramme.java: undefined reference to `__Jv_InitClass' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0x14):PremierProgramme.java: undefined reference to `java::lang::System::class$' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0x28):PremierProgramme.java: undefined reference to `java::lang::System::class$' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0x2d):PremierProgramme.java: undefined reference to `__Jv_InitClass' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0x36):PremierProgramme.java: undefined reference to `java::lang::System::out' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0x5f):PremierProgramme.java: undefined reference to `java::lang::Object::Object[in-charge]()' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.text+0xd4):PremierProgramme.java: undefined reference to `__Jv_RegisterClass' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x50):PremierProgramme.java: undefined reference to `java::lang::Object::finalize()' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x54):PremierProgramme.java: undefined reference to `java::lang::Object::hashCode()' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x58):PremierProgramme.java: undefined reference to `java::lang::Object::equals(java::lang::Object*)' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x5c):PremierProgramme.java: undefined reference to `java::lang::Object::toString()' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x60):PremierProgramme.java: undefined reference to `java::lang::Object::clone()' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x80):PremierProgramme.java: undefined reference to `vtable for java::lang::Class' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.data+0x94):PremierProgramme.java: undefined reference to `java::lang::Object::class$' /cygdrive/c/WINDOWS/TEMP/cctTEmFN.o(.eh_frame+0x11):PremierProgramme.java: undefined reference to `___gcj_personality_v0' /usr/lib/gcc-lib/i686-pc-cygwin/3.1.1/../../../libcygwin.a(libcmain.o)(.text+0x81): undefined reference to `_WinMain AT 16' collect2: ld returned 1 exit status ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |