Reputation: 25
I am trying to build my code but I keep getting this make: *** No targets specified and no makefile found. Stop.
I assume I need a makefile. How do I get this? Sorry I am a beginner coder
Upvotes: 1
Views: 2154
Reputation: 35
When Using Xcode with C you need to first: Click File Click New Click Project
Select macOS Select Command Line Tool Hit Next
Enter a Name for the Program Enter any organization name you would like Select C language Hit Next
Save the file to desired location Hit Create
Click Main.c on the left column Enter code (A hello world program is automatically pre written)
To Run Code: Hit the Play button in the top left
If you get an error, make sure that the scheme is set to your program name and to My Mac. This is located right next to the play and stop button.
Hopefully this helps. Let me know if you have any questions.
Upvotes: 2