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: rocco brandi
Subject: Re: [lwip-users] CGI handler initialization
Date: Mon, 18 Jul 2011 11:05:01 +0100 (BST)

Thanks Simon!
the extract function was wrong and there was some problem in the inclusion of the files, too.

now I'll try to configure the SSI handler ;-)

Rocco

--- Ven 15/7/11, address@hidden <address@hidden> ha scritto:

Da: address@hidden <address@hidden>
Oggetto: Re: [lwip-users] CGI handler initialization
A: "Mailing list for lwIP users" <address@hidden>
Data: Venerdì 15 luglio 2011, 17:37

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

-----Segue allegato-----

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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