Author: Arjen MarkusArjen Markus Date: May 30, 2008 03:00
On 30 mei, 11:43, rudra gmail.com> wrote:
> hello AM,
> for many reason, i found i can make my program better by using c
> subroutines...but my poor knowledge on C prevents me for doing that.
> can u give a small example of that using this utility?
Well, what it does is simply determine the values of
several macros as explained in the comments. You will
have to use these macros for setting up the Fortran-C interface.
First:
Create the program with the Fortran and C compilers you want to use.
Second:
Run it to get the values for these macros in an include file.
Third:
A C function "my_func" like below could then be interfaced to:
#include "ftcl_conventions.h"
#ifdef FOR_UNDERSCORE
#define my_func my_func_
#endif
|