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