Re: gfortran: OK, I quit, you win

From: Dr Ivan D. Reid (Ivan.Reid_at_brunel.ac.uk)
Date: 01/24/05

  • Next message: Arjen Markus: "Re: Calling C from Fortran link problems (Compaq Visual Fortran 6.6 & MS Visual Studio 8)..."
    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".
    

  • Next message: Arjen Markus: "Re: Calling C from Fortran link problems (Compaq Visual Fortran 6.6 & MS Visual Studio 8)..."

    Relevant Pages

    • Re: Fucking fucking 2-strokes
      ... Dr Ivan D. Reid wrote: ... sounding even more sick than usual. ...
      (uk.rec.motorcycles)
    • Re: ...and then there were two.
      ... Dr Ivan D. Reid came up with the following;: ... other side of the field in front of my house (that part of Pield Heath belongs to the Uni), and brought it to the sub-police station behind Brunel. ...
      (uk.rec.motorcycles.classic)
    • Re: Re: RoadGear’s Tierra del Fuego Pant/Over-Pant review
      ... Using the patented Mavis Beacon "Hunt&Peck" Technique, Dr Ivan D. Reid typed ... user who sees an off-topic or spam post from groups.google.com sends _one_ ...
      (uk.rec.motorcycles.classic)
    • Re: Spring has *definitely* sprung
      ... Dr Ivan D. Reid wrote: ... more stylish and very, very flat..!! ... Had some newish-looking Toyota go past me as I walked to work this ...
      (uk.rec.motorcycles)