Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Fortran ==> C Interporability , and C Strutures

$
0
0

Hello everybody,

I have a problem when there are severals structures (and depandancy ???)

Consider this example :

---------------------------------------------------------------------------

# include <stdio .h>

# include <stdlib .h>

# include <string .h>

# include <math .h>



typedef struct

{

int i, j;

} Pair ;



typedef struct

{

int n;

double r;

int n_ch ;

char ** tab_chaines ;

int nb_pairs ;

Pair p       // Not a pointer !!!!!!! reference or value

} Cel;

--------------------------------------------------------------

How can I interoperate With Fotran.

Be careful that  Pair p is not  Pair *p or Pair &p

 

If anyone could Help ??

Thanks in advance

Best Regards


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>