http_server
http_server copied to clipboard
helloworld.cpp not compiling
root@shortcuts:/home/web-user505/Public/public# c++ helloworld.cpp
helloworld.cpp: In function ‘int main(int, const char**)’:
helloworld.cpp:200:43: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
200 | char *find_string = malloc(200);
| ~~~~~~^~~~~
| |
| void*
helloworld.cpp: In function ‘char* parse(char*, const char*)’:
helloworld.cpp:237:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
237 | message = "";
| ^~
helloworld.cpp: In function ‘char* parse_method(char*, const char*)’:
helloworld.cpp:263:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
263 | message = "";
| ^~
helloworld.cpp: In function ‘char* find_token(char*, const char*, const char*)’:
helloworld.cpp:305:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
305 | message = "";
| ^~
helloworld.cpp: In function ‘int send_message(int, char*, char*)’:
helloworld.cpp:362:1: warning: no return statement in function returning non-void [-Wreturn-type]
362 | }
| ^
root@shortcuts:/home/web-user505/Public/public#