[C2hs] No automatic support for marshaling of structures?
zhu Jun
lilozhu at hotmail.com
Fri Aug 4 12:17:06 EDT 2006
Hi All,
When I was trying to marshal a C structure in Haskell, I met such error:
"Illegal structure or union type! There is no automatic support for
marshaling of structures and unions". However, if I try to marshal the
pointer to a structure, it works well.
Could anyone give me any hints? Thank you!
The structure I define in C is:
-------------
typedef point{
int x,y;
};
--------------
And the marshaling code in C2HS is:
--------------
newtype Point = Point {#type point#}
--------------
Best wishes,
Jun
Direct: +46 8 790 4150
Fax: +46 8 751 1793
Post Address: KTH/IMIT/ LECS, Electrum 229, SE-164 40 Kista, Sweden
Visiting address: Forum-Building, Isafjordsgatan 39, 8th floor, elevator C
More information about the C2hs
mailing list