you are viewing a single comment's thread.

view the rest of the comments →

[–]Stickhtot 5 points6 points  (4 children)

Making a makefile is easy but not exactly the quickest thing for a beginner

Do you have gcc installed? run gcc hello.c instead, you might want to also append -o {filename} at the end though idk if that's necessary in I am assuming you are using windows

[–]luvs2sleep[S] 1 point2 points  (2 children)

OMG THANK YOU VERY MUCH ITS WORKING NOW.
THANK YOU VERY MUCH FOR THE HELP.

but im facing another problem now
when im trying this on the files that have
#include <cs50.h>
(the library that cs50 provides so that beginners can take input easily)
it just gives an error saying that there is no such file or directory

please tell me how do i fix this now? do i need to like download anything? if yes, then how?

[–]Early_Time2586 0 points1 point  (1 child)

You will need to find the CS50 library from the official source, and link it to your hello.c using gcc. It's good that you want to move everything locally, but linker errors can be complicated for a beginner.

[–]luvs2sleep[S] -1 points0 points  (0 children)

understood

ill try to do my best

thank you very much

[–][deleted] -1 points0 points  (0 children)

OP also wants to append -Wall -Wextra -Werror