0

Possible Duplicate:
How to compile C programming in Windows 7?

So I've been playing around with Python and Ruby. I can run .py and .rb from cmd.exe. In the near future I'll probably do a clean install on Win 7 and partition my drive to dual boot with Ubuntu. Anyways, I tried to do the same thing with C but I can't figure it out. I'm not interested in coding with an IDE like Turbo C. Can anyone point me in the right direction? Thank You in advance for any suggestions.

Community
  • 1
  • 1
Paul Lewallen
  • 691
  • 6
  • 7

2 Answers2

3

Command Line C/C++ Compiling

Walkthrough: Compiling a Native C++ Program on the Command Line (C++). You need to install Visual Studio Express 2012 products

Compile with MinGW GCC

Compile with Cygwin GCC

C/C++ Interpreter

CLANG

Abhijit
  • 62,056
  • 18
  • 131
  • 204
  • If you're serious about learning C, I would recommend avoiding MSVC. It only supports a very old standard of C, and even that only partially (GCC and CLang support both old *and* new). An advantage is builtin support in Visual Studio, if you want to use an IDE --- but there are plenty of alternatives (and for what it's worth, I personally *hate* VS, for various reasons). – Tim Čas Feb 09 '15 at 15:35
0

I have impression that you don't wont compiler, you wont to execute c scripts, look here :

http://bellard.org/tcc/

With tcc you can run c scripts from command line.

Antonio Bakula
  • 20,445
  • 6
  • 75
  • 102