[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Re: [Libevent-users] Re: [Libevent-users] httpserver.cpp:190: error: invalid application of ‘sizeof’ to incomplete type ‘evkeyvalq’



thanks,

i am using libevent 1.4.x, seems not having this header file.

2011/6/30 Nir Soffer <nirsof@xxxxxxxxx>:
>
> On Thu, Jun 30, 2011 at 11:36 AM, æç|åäæ <calidion@xxxxxxxxx> wrote:
>>
>> hi, all
>>  i am trying to extract the query information from uri,
>>  and i found the evkeyvalq is used in input_headers.
>>
>> so i copied the way the input_headers created by the following line:
>>
>> evkeyvalq *query = (evkeyvalq *)calloc(1, sizeof(evkeyvalq));
>
> You need to include <event2/keyvalq_struct.h> where this structure lives.
>
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.