Hi,I am new to coding. I am using Mac OSX Mountaion Lion. To start off I have decided to use Sublime text 2. It is great with a beautiful interface. However, I am having a little problem. I wrote a simple program using C language. How do i run the program and see how it works?
I am using Sublime Text 2.
Did you try Tools>Build?
I wrote this code,
I went to Tools -> Built. Then came this message.
"/Users/mohamedsuhail/Desktop/program.c:1:19: error: stdio.h: No such file or directory
/Users/mohamedsuhail/Desktop/program.c: In function 'int main()':
/Users/mohamedsuhail/Desktop/program.c:5: error: 'printf' was not declared in this scope
[Finished in 0.0s with exit code 1]"
Someone please help so i can continue using Sublime Text 2 for C. I don't want to use another program.
This isn't a problem with Sublime Text, it's your development setup that's incomplete.
For OSX, you need XCode installed, then run
to install everything needed.
You could use Sublime Text's build system, but I wouldn't recommend it until you learn your way around the command line. To build, cd into your source directory and use
cc -o program program.c
Hello Can anyone assist me how to run c program on windows on sublime text 3?