Hi, I'm getting the following error:
error: incompatible types in assignment
Here is the relevant struct declaration..
Now here's is the function declaration for the function I'm trying to call:Code:typedef struct _Format_list { char *format_name; FieldList field_list; int struct_size; OptInfo *opt_info; }FormatRec, *FormatList, StructDescRec, *StructDescList;
This is how I create the struct:Code:extern submit_handle * create_subscriber_mq(char * name, StructDescRec* format, char* subtype, char* function_str, char* out_subtype)
Now here is my actual call:Code:StructDescRec format_list[] = { // a_field_list and b_field_list are of type FieldList {"a_rec", a_field_list, sizeof(a_record), NULL}, {"b_rec", b_field_list, sizeof(b_record), NULL}, {NULL, NULL, 0, NULL} };
This is where the error actually occurs.. on this function call.Code:handle = create_subscriber_mq("jaitest", mq_format_list, "subtype", trans, "outsub");
Any ideas?



LinkBack URL
About LinkBacks



