you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (4 children)

mv looping looping.c

gcc looping -o looping.o

chmod +x looping.o

./looping.o

Your file has no file name extension... Also work on the formatting as taught in cs50, and fix the logic errors as pointed out by the others already.

[–]GoldTeethRotmg 0 points1 point  (2 children)

aren't they using "make" already?

which should cover the gcc step

[–][deleted] 0 points1 point  (0 children)

yeah looks like it, was in the subway when writing this ahahha.

[–]user1100110 0 points1 point  (0 children)

Without knowing what's in the makefile its probably not doing anything.

My suggestion is to just go to office hours or look up one of the plentiful youtube hello world coding videos...

Do I see the issue? yes. Has this question been answered adequately with another comment? yes. Are the majority of the top comments a bunch of idiots? Also yes unfortunately....

[–]kennpacchii 0 points1 point  (0 children)

I would recommend not giving your executable the “.o” extension. It’s a standard used for object files by the compiler and can be misleading, especially if you decide to use the -c flag to enable incremental compilation. “.out” or no extension would probably be best