About the usage of "void main()" #183
Philos0303
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I'm not using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, it's my great honor to view your code. But during the running in my IDE, I met a bug and wanna share. =>{
It's supported C99 in my IDE ,so when I run the command of 'make' ,it shows me "error: return type of ‘main’ is not ‘int’ [-Wmain]". I search the info, then found , "void main()" is a wrong usage, maybe it is supposed in C89, but it's overtime.
} =>{
I hope you could change your code in the branch of master, in the file of "main.c" ,use "int main(){}" instead of "void main(){}". Then your code will be more friendly to a freshman to run.
Beta Was this translation helpful? Give feedback.
All reactions