When trying to make hello I get the error make: *** [hello] Error 1
I have only one folder inside of my ~/workspace. Its called pset1 and has only one file inside of it hello.c
My code:
What am I doing wrong and how can I fix it?
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this communityDid you remember to save your file with the latest changes before trying to build the executable? The red dot on the tab for the source code in the first image means that it hasn't been saved. Also, the errors are typical for a source file where the main program code inside the source code file has been named hello()
instead of main()
. (Naming the file hello.c
is still correct.)
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)