Mail Archives: djgpp/2005/03/05/07:16:03
FloX <wosrediinanatour AT aon DOT at> wrote:
> hi!
> i want to call c functions from a fortran code. (i want to use fortran
> code which calls allegro functions).
Getting that right in the general case is surprisingly tricky. If you
can, I would suggest you try the cfortran.h interface header for this.
Fortran can't call the majority of C functions directly, because
Fortran is strictly pass-by-reference, C is strictly pass-by-value.
This means you need a huge collection of man-in-the-middle functions
to resolve such differences. Writing all of those for an interface
the size and complexity of Allegro's would be a huge amount of work.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -