2015-06-10 10 views
8

Potrzebuję użyć gfortran do kompilacji biblioteki, która jest zależna od ieee_arithmetic. Jednak okazuje się, że gfortran nie może zidentyfikować tego modułu.Wewnętrzny moduł isee_arithmetic w gfortran

Na przykład z kodem a.f90

program test 
    use,intrinsic :: ieee_arithmetic 
    real :: x 
    read *, x 
    if (ieee_is_nan(x)) then 
     print *, "Nan" 
    else 
    print *, "Not NaN" 
end if 
end program test 

Mam następujący komunikat podczas kompilacji

$ gfortran a.f90 
a.f90:2.19: 

use,intrinsic :: ieee_arithmetic 
       1 
Fatal Error: Can't find an intrinsic module named 'ieee_arithmetic' at (1) 

Jak mogę pozwolić gfortran wiedzieć gdzie wewnętrzna moduł ieee_arithmetic jest?

Jeśli zostanie znaleziony ifort, będzie można użyć modułu ieee_arithmetic. Ale chcę sprawić, aby gfortran działał w tej sprawie.

Odpowiedz

Powiązane problemy