Re: gfortran: OK, I quit, you win
From: Dr Ivan D. Reid (Ivan.Reid_at_brunel.ac.uk)
Date: 01/24/05
- Previous message: Dr Ivan D. Reid: "Re: Kalman filtering"
- In reply to: Dr Ivan D. Reid: "Re: gfortran: OK, I quit, you win"
- Next in thread: FX: "Re: gfortran: OK, I quit, you win"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 Jan 2005 07:48:39 +0000 (UTC)
On Mon, 17 Jan 2005 21:34:55 +0000 (UTC),
Dr Ivan D. Reid <Ivan.Reid@brunel.ac.uk>
wrote in <slrncuobru.ss8.Ivan.Reid@loki.brunel.ac.uk>:
> On Mon, 17 Jan 2005 12:20:35 -0700, James Van Buskirk <not_valid@comcast.net>
> wrote in <Vf-dncI__pBbk3HcRVn-3w@comcast.com>:
>> I tried downloading the gfortran mingw stuff, but there was no
>> README file. How am I to know how to even get started? I set
>> the PATH environmental variable to point to the gfortran-mingw\bin
>> directory, but all I got was:
>> C:\GFORTR~1\James\clf\logical>gfortran -std=f95
>> logical_gen.f90 -ological_gen
>> ld: cannot open crt2.o: No such file or directory
> That may not be unique to gfortran. I've been trying to compile
> in cygwin a C++ programme which uses long doubles. /usr/include/math.h
> doesn't contain sqrtl, ceill, etc, while /usr/include/mingw/math.h does,
> so I tried "g++ -mno-cygwin -v" which showed that it was trying to link to
> "crt2.o" with no leading path information. It thus failed with the same
> error as you got. The -L linker option seems to only work for libraries
> (libxxxx.a), not objects.
> There seems to be some arcana to get this to work, but I've not
> found it spelled out explicitly anywhere yet.
A clue appeared in another post in this thread. I tried
export LIBRARY_PATH=/usr/lib/mingw (I use bash in cygwin) and it picked
up (apparently) the correct crt2.o. Now I just have to battle with this
version of the compiler handling long doubles differently, when it
comes to printf at least...
--
Ivan Reid, Electronic & Computer Engineering, ___ CMS Collaboration,
Brunel University. Ivan.Reid@brunel.ac.uk Room 40-1-B12, CERN
GSX600F, RG250WD. "You Porsche. Me pass!" DoD #484 JKLO# 003, 005
WP7# 3000 LC Unit #2368 (tinlc) UKMC#00009 BOTAFOT#16 UKRMMA#7 (Hon)
KotPT -- "for stupidity above and beyond the call of duty".
- Previous message: Dr Ivan D. Reid: "Re: Kalman filtering"
- In reply to: Dr Ivan D. Reid: "Re: gfortran: OK, I quit, you win"
- Next in thread: FX: "Re: gfortran: OK, I quit, you win"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|