From: Tony G. <Ton...@Su...> - 2005-04-07 01:00:28
|
Stefan Seefeld <se...@sy...> writes: > Bruno Sadiez wrote: >> hello Tony, >> thank you for the fast reply. >> I've tried to do as you said. I cannot get past this >> error message: >> variable `fo_invoice_result_tree' has initializer but >> incomplete type >> error: storage size of `fo_invoice_result_tree' isn't >> known >> fo_invoice_result_tree is declared as a FoXmlDoc. > > This usually means the type has been forward-declared, > i.e. some #include may be missing to expose a real > declaration to the code using it. Stefan is correct. The problem may be in the two lines of code in my previous post where I omitted a '*'. I should have used a FoXmlDoc*, not a FoXmlDoc: FoXmlDoc *result_tree = fo_xml_doc_new (); fo_xml_doc_set_xml_doc (result_tree, your_xml_doc_ptr); If that is not the problem, please post the function containing the problem and the complete compiler error message so we have a better chance of working out the problem. Please note, however, that I am very short of time for the rest of this week and I will have limited email ability next week. Regards, Tony. |