Open andre2007 opened 4 years ago
I used dustmite to reduce the problem. This is the reduced testcase
File app.d
struct _GArrowArrayBuilderClass;
struct _GArrowBooleanArrayBuilderClass
{
_GArrowArrayBuilderClass parent_class;
}
void main(){}
It throws the syntax error:
app.d(4): Error: variable app._GArrowBooleanArrayBuilderClass.parent_class no definition of struct _GArrowArrayBuilderClass
Thanks for the reduced code. That is not valid D, and I have to investigate why dpp is generating that code, especially since it's not valid C either
Hi @andre2007 - did you manage to find a way around this? I don't see clearly why this is not valid C/D code.
@ananis25
Yes, as far as I remember I had to manually adapt a lot of struct definitions from e.g.
struct _GArrowArrayBuilderClass;
To
struct _GArrowArrayBuilderClass{};
Thank you @andre2007 , I can now get a simple array builder working. I couldn't really see how are opaque structs are represented.
If have this dockerfile
Script
install.sh
looks like thisparquet.dpp looks like this
app.d is just
LDC fails with:
This is somehow strange, because can see it is defined: