[Haskell-cafe] more on FFI build error

Claude Heiland-Allen claudiusmaximus at goto10.org
Mon Mar 24 09:12:34 EDT 2008


Galchin Vasili wrote:
> 
> line #102 ...
> 
>    allocaBytes (#const sizeof(struct mq_attr)) $ \ p_attrs -> do
>  
> definition of struct mq_attr on Linux ...
> 
>   struct mq_attr
> {
>   long int mq_flags;    /* Message queue flags.  */
>   long int mq_maxmsg;   /* Maximum number of messages.  */
>   long int mq_msgsize;  /* Maximum message size.  */
>   long int mq_curmsgs;  /* Number of messages currently queued.  */
>   long int __pad[4];
> };


Did you #include the header file that defines this struct?


Claude
-- 
http://claudiusmaximus.goto10.org


More information about the Haskell-Cafe mailing list