Generating C prototypes from Fortran (The GNU Fortran Compiler) (original) (raw)


6.1.7 Generating C prototypes from Fortran

The options -fc-prototypes can be used to write out C declatations and function prototypes for BIND(C) entities. The same can be done for writing out prototypes for external procedures using -fc-prototypes-external, see Options for interoperability with other languages.

Standard Fortran does not specify an interoperable type for C’sunsigned integer types. For interoperability with unsigned types, GNU Fortran provides unsigned integers, see Unsigned integers.