Re: Beginer needing help



here is the code(i decidet to set interval from 1 to 7):

program bla

REAL(KIND=4) :: a = 1.0_4, b = 7.0_4
REAL(KIND=8) :: eps = 1.0D-8
REAL(KIND=8) :: del = 1.0D-7
REAL(KIND=8) :: x,y
LOGICAL :: llm
EXTERNAL fun

CALL RMINFC(fun,a,b,eps,del,x,y,llm)

IF (llm) THEN
PRINT *,'Minimum is = ',x
PRINT *,'y(x_min) is = ',y
END IF
END PROGRAM

FUNCTION fun (x) RESULT (y)
REAL(KIND=4) :: x,y,pi=3.1415926535897932385_4
y = SIN(pi*x/180)/x
END FUNCTION



but the problem is i think now with library. when i type in command prompt: gfortran new.f90 -o new.exe -lmathlib it says cannot find -mathlib. so does that mean that my compiler does not have a CERN library ad if that's the problem how do i get it?
.