I would like to use RPCGEN to create the .h and .c files for my demo XDR
serialization / deserialization program.

My 'test.x' file contains:
const MAXNAMELEN = 64;
struct bla_s
    string str<MAXNAMELEN>;
    double r;
    int i;

Whenever I ran 'RPCGEN FROMFILE('/test.x')', I get the following error:
CPD0018:  String ').        ' contains a character that is not valid.
CPF0001:  Error found on *N command.
CPFA0A9:  Object not found.  Object is
CPC7301:  File QACZEXPAND created in library QTEMP.
CPF4102:  File QRPCSRC0 in library QTEMP with member TEST0 not found.
CZS0611:  File QRPCSRC0 with member TEST0 could not be opened or member
TEST0 could not be found in file QRPCSRC0.
CPFB413:  Failure in processing the
CPC2191:  Object QACZEXPAND in QTEMP type *FILE deleted.
CPFB416:  CVTRPCSRC or RPCGEN command failed.

I'm a little bit confused as I get the SAME error even if I run RPCGEN
over an empty file. If RPCGEN is ran over an nonexisting file, the error
message is different.

Do anyone have a hint or maybe even better an working example?

Best regards,

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].