S
Sheldon
Hi,
This is a simple mistake so Iam sure there is someone who can help
with it:
The the file.h:
#define IBFLEN 50000
int IRET, ILEN, IUNIT1, IUNIT2, ILOOP, KERR;
extern void pbbufr_(int *IUNIT1, int *IBUFF, int *IBFLEN, int *ILEN,
int *IRET);
Compiling gives the following error with the function prototype:
error: parse error before numeric constant
I have tried several variations but I am at a lost as the to true
cause. The function is from a FORTRAN library and as such the
arguments must be addresses and not copy. If I change IBFLEN to an int
and not use the #define method, it might work, but I would like to
understand why this error occurs.
Thanks for your help.
/Sheldon
This is a simple mistake so Iam sure there is someone who can help
with it:
The the file.h:
#define IBFLEN 50000
int IRET, ILEN, IUNIT1, IUNIT2, ILOOP, KERR;
extern void pbbufr_(int *IUNIT1, int *IBUFF, int *IBFLEN, int *ILEN,
int *IRET);
Compiling gives the following error with the function prototype:
error: parse error before numeric constant
I have tried several variations but I am at a lost as the to true
cause. The function is from a FORTRAN library and as such the
arguments must be addresses and not copy. If I change IBFLEN to an int
and not use the #define method, it might work, but I would like to
understand why this error occurs.
Thanks for your help.
/Sheldon