Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helloworld.cpp not compiling #4

Open
matthew-james-brewer opened this issue Aug 10, 2024 · 0 comments
Open

helloworld.cpp not compiling #4

matthew-james-brewer opened this issue Aug 10, 2024 · 0 comments

Comments

@matthew-james-brewer
Copy link

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# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant