This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: installation help
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Ed Zaron <ezaron at coas dot oregonstate dot edu>
- Date: Thu, 21 Oct 2004 03:56:46 +0100
- Subject: Re: installation help
- Organization: CodeSourcery
- References: <D626D576-216A-11D9-A47E-000A9595CA6C@coas.oregonstate.edu>
On Tuesday 19 October 2004 02: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.
More likely you don't have the glibc development packages installed (libm is
generally part of part of libc)
Paul