This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: installation help


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]