lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] CGI handler initialization


From: address@hidden
Subject: Re: [lwip-users] CGI handler initialization
Date: Fri, 15 Jul 2011 17:37:23 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0

rocco brandi wrote:
if I set:
const tCGI myCGI[]={{string, extract}};

http_set_cgi_handlers(myCGI,1);

the compiler warn:

error: syntax error before numeric constant
warning: type defaults to 'int' in declaration of 'http_set_cgi_handlers'
error: conflicting types for 'http_set_cgi_handlers'
error: previous declaration of 'http_set_cgi_handlers' was here
 warning: data definition has no type or storage class
warning: no newline at end of file
Without knowing which code/what lines in which file the compiler complains about, I can't help you very much. However, it seems like at least
a) your include order is wrong or you are missing an include file (or the define that enables CGI is missing) and
b) your function definition is indeed wrong, it should be:
const char *extract(int ind, int NumParam, char *param[], char *val[]);

Simon

reply via email to

[Prev in Thread] Current Thread [Next in Thread]