[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] error: aggregate âevkeyvalq queryâ has incomplete type and cannot be defined
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] error: aggregate âevkeyvalq queryâ has incomplete type and cannot be defined
- From: Mihai Draghicioiu <mihai.draghicioiu@xxxxxxxxx>
- Date: Sun, 25 Jul 2010 18:12:25 +0300
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Sun, 25 Jul 2010 11:12:33 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=tTAO1Xl+2F5ZhrRZk0TKSeyq1zqYWQuAoIyC/WJA7QI=; b=XGP8kEg69BESxM58OcemvME+d631+0OZYx3Ha9ttoJ58uJir8wJg/RL/nlnT2Sg0q3 A0P4xGVy9aKaAyCz56R8bHRwZj7DKXHtuY4TX6G8zzC6UHZ5EqH81bn8LunnIU03EKAn 2XDzYgX13ogps3Ux8mcN8/u7QWuA9K5yGM2OM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=RH8JUpKgdINlBXEVOgVcL4XjTDaiOZCxgT+xl6xEQoIM/nC2zUP2siOMQ26zQz3SMl envjNemHIysfqt9fsESYcUo0JjqS9RdNlkAyRzkUx7NfNkztT/8JgkS4sKqI3ERQimSE Mc5MHLiGRxTSI82A6Fbjddbl4COKRA3ACQgPw=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi guys. I'm trying to extract parameters from the url query, but i
can't seem to figure out why i'm getting this error. Here is the code:
static void httpadmincb(struct evhttp_request *req, void *arg) {
.
.
.
struct evkeyvalq query;
evhttp_parse_query(evhttp_request_get_uri(req), &query);
And the error i'm getting:
error: aggregate âevkeyvalq queryâ has incomplete type and cannot be defined
I've included <event.h> and <evhttp.h> and <sys/queue.h> and i can't
figure out how to do this. I just want to parse the query string
basically. I've seen other applications (google code search) do the
same thing and they seem to work. So what am I missing?
Here's a pastebin with all of the code in that file
http://frogmod.pastebin.com/iHjHUFjj (line 482 and below)
And the full compile output:
http://frogmod.pastebin.com/CjPsZ9th
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.