qhttpserver icon indicating copy to clipboard operation
qhttpserver copied to clipboard

have a error when i compile source

Open killerfox opened this issue 8 years ago • 1 comments

have a error in when compile source

error source(qhttpserver-master\http-parser\http_parser.c): int hasBody = parser->flags & F_CHUNKED || (parser->content_length > 0 && parser->content_length != ULLONG_MAX); if (parser->upgrade && (parser->method == HTTP_CONNECT || (parser->flags & F_SKIPBODY) || !hasBody)) { /* Exit, the rest of the message is in a different protocol. */ UPDATE_STATE(NEW_MESSAGE()); CALLBACK_NOTIFY(message_complete); RETURN((p - data) + 1); } the reason of error: Error: C2143: syntax error : missing ';' before 'type' Error: C2065: 'hasBody' : undeclared identifier

killerfox avatar Oct 24 '17 01:10 killerfox

Could you format the code in code tags and add line numbers? Without that it is hard to say where the error is. How are you compiling this?

nikhilm avatar Oct 24 '17 20:10 nikhilm