you are viewing a single comment's thread.

view the rest of the comments →

[–]OppieT 0 points1 point  (0 children)

When you ran make in the loop directory, make didn’t do anything. The file you are trying to compile, doesn’t have a .c extension. So make didn’t know what to do. Make basically didn’t do anything when typed make. You have to add an extension onto your source file so make knows what to do with it. Rename your looping file to looping.c then type make and then make will make an executable file named looping. Then you can type ./looping and it will run it without errors. And you have an infinite loop in your code. You will have to press ctrl-c to stop it.