This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Problem with Cygwin installation: FAQ?
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: "Adam Kleczkowski" <ak133 at cus dot cam dot ac dot uk>
- Cc: "Gsl-Discuss" <gsl-discuss at sources dot redhat dot com>, adam at kleczkowski dot net
- Date: Wed, 28 Nov 2001 00:51:36 +0100
- Subject: Re: Problem with Cygwin installation: FAQ?
- Organization: Esse keine toten Tiere
- References: <NCBBIJNHCKHEPHMAPMMIAEHODCAA.ak133@cus.cam.ac.uk>
- Reply-to: "Gerrit P. Haase" <gp at familiehaase dot de>
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
--
=^..^=