How can I compile and run C in sublime text 2 without creating an executable file on build?
Asked
Active
Viewed 170 times
-4
-
Make a script that compiles the code, runs it, and then immediately deletes the executable. Same result - probably much easier (especially if you want to use a normal C compilter)! – Matti Virkkunen Feb 24 '16 at 01:45
-
2You can't - C is a *compiled* language. Unless you're building a library, in which case you don't run it anyway, you need to compile a C program before running it. – MattDMo Feb 24 '16 at 01:54
-
Let me guess, you're on a school computer or something that prohibits running untrusted EXE files? – user253751 Feb 24 '16 at 02:19
1 Answers
0
The answer is you can't. C is a compiled language. When you compile it, it produces an exe
, or an out
file, which you run.
If you're still confused, see: How to compile and run a simple C program with Sublime Text 2?
Also see this.

Community
- 1
- 1

Box Box Box Box
- 5,094
- 10
- 49
- 67