c_sizeof,

Vladimír Fuka vladimir.fuka@mff.cuni.cz
Sun Sep 22 11:03:00 GMT 2013


Hello,

  I am not sure, is this program standard conforming? It is not
accepted by gfortran 4.8 with

Error: 'x' argument of 'c_sizeof' intrinsic at (1) must be an
interoperable data entity


     Vladimir

use iso_c_binding

print *, c_sizeof( real(1., c_float) )
end



More information about the Fortran mailing list