Why is it when I compile the following line:
extern bool_t xdr_RAP_BYTE_TYPE (XDR *, RAP_BYTE_TYPE*);
gives me the error:
rap.h:307:49: error: expected ) before * token
Why is it when I compile the following line:
extern bool_t xdr_RAP_BYTE_TYPE (XDR *, RAP_BYTE_TYPE*);
gives me the error:
rap.h:307:49: error: expected ) before * token
You're probably missing a header file that defines XDR or RAP_BYTE_TYPE, or they're defined below that prototype.
Does the compiler know what bool_t, XDR and RAP_BYTE_TYPE are at this point in the code? If they are defined in another header, headers included in an order such that these types have been defined before this point?
If that's not the problem, could you provide some more code please?
Ah ha! XDR is not being defined anywhere.
Turns out Cygwin did not come with an XDR library. Found one and included it and it turns out I could just eliminate the xdr calls all together.
But you guys were right and thanks.