1

Possible Duplicate:
Using Visual Studio's 'cl' from a normal command line

I have .net framework installed.

I did search before posting. I searched for compile c++ command line windows.

Community
  • 1
  • 1
desbest
  • 4,746
  • 11
  • 51
  • 84
  • http://stackoverflow.com/questions/84404/using-visual-studios-cl-from-a-normal-command-line I dunno if you need anything special to get .NET stuff to work though. – user786653 Aug 16 '11 at 09:39
  • Do you wish to compile C# code or C++ code? – RedX Aug 16 '11 at 11:14

1 Answers1

2

For starters, you need a compiler.

then you run the compiler, passing the file to it as an argument, eg cl myfile.cpp (you may want to pass some compiler options in there too, but which ones depend on which compiler you use - visual studio's, or gcc or Intels, etc).

MS has a brief starter guide for you, but this one for gcc is probably better as its describes all the steps involved.

gbjbaanb
  • 51,617
  • 12
  • 104
  • 148