
4 Aug
2006
4 Aug
'06
12:17 p.m.
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