This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: installation help
- From: Bud Davis <bdavis9659 at comcast dot net>
- To: Ed Zaron <ezaron at coas dot oregonstate dot edu>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 19 Oct 2004 08:28:13 -0500
- Subject: Re: installation help
- References: <D626D576-216A-11D9-A47E-000A9595CA6C@coas.oregonstate.edu>
On Mon, 2004-10-18 at 20:04, Ed Zaron wrote:
> Hello,
>
> I recently downloaded and installed the LinuxDailyBinary:
>
> GNU Fortran 95 (GCC 4.0.0 20041018)
>
> The compiler seems to produce object files fine, but I can't get it to
> link. I get the error:
>
> /usr/bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
>
> Could I have the wrong version of gcc? "gcc --version" reports:
>
> gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
>
> I'm not sure where to get the 4.0.0 version of gcc, but before chasing
> it down I thought I'd ask if this was likely the issue. ... or maybe
> it is a simple path problem.
>
> Thanks for your work on this project! It would be pretty cool to have a
> high-quality open-source f90/95 compiler out there. (presently I use
> IBM's xlf for my work --- but, somehow, fortran has become a hobby for
> me at home too!).
>
> Best regards,
>
> Ed
gcc4.0 is in the same tarball, look for it in
<wherever_you_put_it>/irun/bin/
it maybe helpful to add the -V option, to see exactly what is going on.
--bud