Operating System - Linux
1753762 Members
4575 Online
108799 Solutions
New Discussion

Compiling and Linking NAG FORTRAN 95

 
SOLVED
Go to solution

Compiling and Linking NAG FORTRAN 95

When compile and link a FORTRAN source program the follow message is received after the compiling step:

/usr/ccs/bin/ld: can't find library:"M"

My workstation is 785 2.9 PA8500 and I've installed the HP C ANSI and B6061AA_PA_V9_4 Math Libraries.
1 REPLY 1
Dennis Handly
Acclaimed Contributor
Solution

Re: Compiling and Linking NAG FORTRAN 95

>/usr/ccs/bin/ld: can't find library:"M"

Are you linking with -lM? I don't think this exists on 11.00 or 11.11 any more. Change it to -lm.