From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21037 invoked by alias); 24 Mar 2003 15:22:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 21030 invoked from network); 24 Mar 2003 15:22:23 -0000 Received: from unknown (HELO relay1.softcomca.com) (168.144.1.67) by sources.redhat.com with SMTP; 24 Mar 2003 15:22:23 -0000 Received: from M2W064.mail2web.com ([168.144.251.173]) by relay1.softcomca.com with Microsoft SMTPSVC(5.0.2195.5576); Mon, 24 Mar 2003 10:22:23 -0500 Message-ID: <293580-220033124152223178@M2W064.mail2web.com> X-Priority: 3 Reply-To: lhall@rfk.com X-Originating-IP: 209.113.174.244 From: "lhall@pop.ma.ultranet.com" To: sacuyo@yahoo.es, cygwin@cygwin.com Subject: RE: help!! Date: Mon, 24 Mar 2003 16:14:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 24 Mar 2003 15:22:23.0083 (UTC) FILETIME=[2B170BB0:01C2F219] X-SW-Source: 2003-03/txt/msg01649.txt.bz2 My suggestion to you is to pull out your favorite debugger and start looking at where the problem occurs. That usually provides some clues or at least a basis on which you can start asking=20 questions that lead to a solution. If you have a follow-up question as a result of this analysis, you should visit for information on how to report bugs or ask for assistance with problem=20 analysis. Larry Original Message: ----------------- From: Sacri Acuyo sacuyo@yahoo.es Date: Mon, 24 Mar 2003 10:31:59 +0100 (CET) To: cygwin@cygwin.com Subject: help!! Hello, I would like to make you a question: I'm trying to call to java code from C++ code, so I have just do it for linux with gcc using gcj and gcjh. Now, I have been trying the same for Windows 2000, following these steps: 1.- Write the java file --> prueba_java.java 2.- Compile it with javac --> javac prueba_java.java 3.- Create the header file --> gcjh prueba_java 4.- Create the .o file -->=20 gcj gcj -c -g -O prueba_java.java=20 5.- Write the C++ file, from which I call the java code --> main.cc 6.- Compile it --> gcc -c -I /MinGW/include main.cc 7.- Linking with java code -->=20 gcc -static main.o prueba_java.o -o ejecutable -L -L/MinGW/lib -lgcj -lmingw32 -lwsock32 And when I try to execute the executable file ( ejecutable ), but it dies with an abnormal program termination, because of the following error: Program received signal SIGSEGV, Segmentation fault. 0x78002320 in _libwsock32_a_iname () (gdb) where #0 0x78002320 in _libwsock32_a_iname () #1 0x0043f966 in java::lang::System::init_properties() () #2 0x00413335 in java::lang::System::getProperty(java::lang::String*) () #3 0x00458caa in java::util::TimeZone::__U3c_clinit__U3e_() () #4 0x0040530f in java::lang::Class::initializeClass() () #5 0x004d671c in _Jv_InitClass () at {standard input}:205 #6 0x004543f6 in java::util::TimeZone::getTimeZone(java::lang::String*) () #7 0x00412f79 in java::lang::System::getDefaultTimeZoneId() () #8 0x0043f7ed in java::lang::System::init_properties() () #9 0x00413335 in java::lang::System::getProperty(java::lang::String*) () #10 0x004602b1 in java::io::PrintStream::__U3c_clinit__U3e_() () #11 0x0040530f in java::lang::Class::initializeClass() () #12 0x00402c31 in _Jv_AllocObjectNoFinalizer () #13 0x004136e7 in java::lang::System::__U3c_clinit__U3e_() () #14 0x0040530f in java::lang::Class::initializeClass() () #15 0x004d671c in _Jv_InitClass () at {standard input}:205 #16 0x004133e0 in java::lang::System::getSecurityManager() () #17 0x0040c81a in java::lang::Thread::checkAccess() () #18 0x0040ca24 in java::lang::Thread::setDaemon(bool) () #19 0x004127a2 in gnu::gcj::runtime::FinalizerThread::FinalizerThread() () #20 0x0040396f in _Jv_CreateJavaVM(void*) () #21 0x004d674d in JvCreateJavaVM(void*) () at {standard input}:205 #22 0x004012b7 in main () I would like you to tell me how to solve this problem, if it's possible.. Thank you very much for your attention.. ___________________________________________________ Yahoo! Messenger - Nueva versi=F3n GRATIS Super Webcam, voz, caritas animadas, y m=E1s... http://messenger.yahoo.es -- 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/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.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/