From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16687 invoked by alias); 13 Jul 2012 08:12:27 -0000 Received: (qmail 16675 invoked by uid 22791); 13 Jul 2012 08:12:25 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_JC X-Spam-Check-By: sourceware.org Received: from mail-ob0-f171.google.com (HELO mail-ob0-f171.google.com) (209.85.214.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Jul 2012 08:11:54 +0000 Received: by obqv19 with SMTP id v19so4827327obq.2 for ; Fri, 13 Jul 2012 01:11:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.14.36 with SMTP id m4mr162447obc.71.1342167113896; Fri, 13 Jul 2012 01:11:53 -0700 (PDT) Received: by 10.182.65.134 with HTTP; Fri, 13 Jul 2012 01:11:53 -0700 (PDT) In-Reply-To: <4bfae5cb28706b33d48372d5a1bd80bb.squirrel@zeusw.org> References: <1342107001.13284.ezmlm@cygwin.com> <4bfae5cb28706b33d48372d5a1bd80bb.squirrel@zeusw.org> Date: Fri, 13 Jul 2012 08:12:00 -0000 Message-ID: Subject: Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question) From: Csaba Raduly To: simon.claude@zeusw.org, cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00261.txt.bz2 On Thu, Jul 12, 2012 at 5:59 PM, Claude SIMON wrote: (snip) > Since my last testings, I updated Cygwin, the JDK and the JRE. So, my > current configuration is now : > > Windows Vista 32 bits SP2 > Cygwin 1.7.15 > g++ 4.5.3 > javac 1.7.0_05 > javah 1.7.0_05 > java 1.7.0_05 > > When running the test case, I now have : > > $ java jcmc > Loading library 'jcmc'...Exception in thread "main" > java.lang.UnsatisfiedLinkError: H:\cvs\epeios\bugs\jcmc\jcmc.dll: L'acc= =DEs > =D3 cet emplacement de la m=DAmoire n'est pas valide > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary1(Unknown Source) > at java.lang.ClassLoader.loadLibrary0(Unknown Source) > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at jcmc.main(jcmc.java:9) > > There is a French message which roughly means "The access to this memory > location is not valid" > > I updated the test case to reflect your changes : > - 'Makefile' now generates the '.h' file, > - 'Makefile' does no more contain the '--stdcall-alias' linker fl= ag, > - the '.cpp' contains now the `extern "C"' directive, > - the '.h' is removed from test case, since it's now generated by= the 'Makefiile'. This sounds a bit like my JNI problem: http://cygwin.com/ml/cygwin/2012-07/msg00043.html Csaba --=20 GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torv= alds "People disagree with me. I just ignore them." -- Linus Torvalds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple