[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] httpserver.cpp:190: error: invalid application of ‘sizeof’ to incomplete type ‘evkeyvalq’
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));
but the compiler give the following error message:
httpserver.cpp:190: error: invalid application of ‘sizeof’ to
incomplete type ‘evkeyvalq’
i have search this problem on the internet where said that "#include
<sys/queue.h>" should be added to the last line of the all ev header
files.
so i included this file to my end line of these inclusions.
but this error message remain.
how can i pass this problem?
thanks.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.