From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gerrit P. Haase" To: "Adam Kleczkowski" Cc: "Gsl-Discuss" , adam@kleczkowski.net Subject: Re: Problem with Cygwin installation: FAQ? Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <130270578311.20011128005136@familiehaase.de> References: X-SW-Source: 2001/msg00740.html Hallo Adam, Am 2001-11-27 um 13:33 schriebst du: > I am trying to install/compile/run GSL v. 1.0 in the Cygwin environment > (most up-to-date version), gcc 2.95.3-5. This has created a series of > various problems and I have not been successful so far. > Cygwin is installed in c:\cygwin > GSL libraries, include files etc in c:\cygwin\usr\bin etc, binaries in > c:\cygwin\bin > Testing by using example programs from the manual (pages referring to PDF > format): > Page 40: poly.c (finding roots of the polynomial) > Page 162: random.c (testing a random number generator) > Page 266: vanderpol.c (Vanderpol oscilator) > Using the mingw installation. > All programs compile well, but: > a. poly.c executes with no problem > b. random.c and vanderpol.c crash giving the message: > 0 [main] A 86798653 handle_exceptions: Exception: > STATUS_ACCESS_VIOLATION > 1647 [main] A 86798653 open_stackdumpfile: Dumping stack trace to > RANDOM.EXE.stack > dump > I compile using simply > gcc -o random.exe -c random.c -lgsl -lm As Kees wrote, you cannot mix cygwin and mingw, if you compile *with* cygwin1.dll then you do correct like above, if you have a dsl lib compiled *with* mingw you need to add -mno-cygwin to your link line to get a native windows binary. gcc -mno-cygwin -o random.exe -c random.c -lgsl -l... and you need to add the correct libs (I don't know them, Kees wrote about dependencies msvcrt and so), libm, libg, libc are all the same as libcygwin. Ciao, Gerrit P. Haase mailto:gp@familiehaase.de -- =^..^= From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11217 invoked by alias); 28 Nov 2001 08:16:39 -0000 Mailing-List: contact gsl-discuss-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 11195 invoked from network); 28 Nov 2001 08:16:37 -0000 Received: from unknown (HELO mailout05.sul.t-online.de) (194.25.134.82) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 08:16:37 -0000 Received: from fwd01.sul.t-online.de by mailout05.sul.t-online.de with smtp id 168ztL-0003J5-01; Wed, 28 Nov 2001 09:16:27 +0100 Received: from loreley.haase.dynu.com (320081107336-0001@[62.224.44.65]) by fmrl01.sul.t-online.com with esmtp id 168ztD-0j5C8uC; Wed, 28 Nov 2001 09:16:19 +0100 Received: from haase.dynu.com ([192.168.1.1] helo=LORELEY) by loreley.haase.dynu.com with esmtp (Exim 3.33 #4) id 168s1I-000086-00; Wed, 28 Nov 2001 00:52:08 +0100 Date: Tue, 20 Nov 2001 03:02:00 -0000 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <130270578311.20011128005136@familiehaase.de> To: "Adam Kleczkowski" CC: "Gsl-Discuss" , adam@kleczkowski.net Subject: Re: Problem with Cygwin installation: FAQ? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320081107336-0001@t-dialin.net X-SW-Source: 2001-q4/txt/msg00064.txt.bz2 Message-ID: <20011120030200.K5-DjERIAB-PDawtMV8D-qPh3LMUbxi7E89q2e7faQQ@z> Hallo Adam, Am 2001-11-27 um 13:33 schriebst du: > I am trying to install/compile/run GSL v. 1.0 in the Cygwin environment > (most up-to-date version), gcc 2.95.3-5. This has created a series of > various problems and I have not been successful so far. > Cygwin is installed in c:\cygwin > GSL libraries, include files etc in c:\cygwin\usr\bin etc, binaries in > c:\cygwin\bin > Testing by using example programs from the manual (pages referring to PDF > format): > Page 40: poly.c (finding roots of the polynomial) > Page 162: random.c (testing a random number generator) > Page 266: vanderpol.c (Vanderpol oscilator) > Using the mingw installation. > All programs compile well, but: > a. poly.c executes with no problem > b. random.c and vanderpol.c crash giving the message: > 0 [main] A 86798653 handle_exceptions: Exception: > STATUS_ACCESS_VIOLATION > 1647 [main] A 86798653 open_stackdumpfile: Dumping stack trace to > RANDOM.EXE.stack > dump > I compile using simply > gcc -o random.exe -c random.c -lgsl -lm As Kees wrote, you cannot mix cygwin and mingw, if you compile *with* cygwin1.dll then you do correct like above, if you have a dsl lib compiled *with* mingw you need to add -mno-cygwin to your link line to get a native windows binary. gcc -mno-cygwin -o random.exe -c random.c -lgsl -l... and you need to add the correct libs (I don't know them, Kees wrote about dependencies msvcrt and so), libm, libg, libc are all the same as libcygwin. Ciao, Gerrit P. Haase mailto:gp@familiehaase.de -- =^..^=