Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > How do I invoke the .NET C++ compiler from the command line?

Reply
Thread Tools

How do I invoke the .NET C++ compiler from the command line?

 
 
Sim Nanda
Guest
Posts: n/a
 
      02-18-2004
Hello,
When I used to have MSVStudio 6.0 on my old machine, I
could just use:
cc somefile.cpp -o somefile.exe
to invoke the compiler from the command prompt.
Which I found very helpful for quick little test
programs.

Recently, I've moved to a new machine
at work which came with MS .NET pre-installed. I can't
seem to find a way to invoke the C++ compiler from
the commandline. I've searched the .NET directory for
executables, and Help isn't very helpful.

Does anyone know if there is a command line executable?
It sure is annoying to have to start up the IDE and
create a project for just a single little C++ test file.

bye,
Slarty
 
Reply With Quote
 
 
 
 
Jonathan Turkanis
Guest
Posts: n/a
 
      02-18-2004
"Sim Nanda" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hello,
> When I used to have MSVStudio 6.0 on my old machine, I
> could just use:
> cc somefile.cpp -o somefile.exe
> to invoke the compiler from the command prompt.
> Which I found very helpful for quick little test
> programs.


This is defintely the wrong group for this microsoft-specific
question. The command-line compiler is called cl.exe. Before using it,
you need to set environment variables, which can be done with
vcvars32.bat in the bin directory.

Jonathan


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
why i cannot invoke python script using command line? smith jack Python 2 08-23-2011 03:34 PM
Does changing a Tkinter Variable bound to a widget invoke its'command' callback function? execrable@gmail.com Python 0 11-29-2007 10:11 AM
how to invoke the shell command and then get the result in python Bin Chen Python 7 12-06-2006 10:30 AM
How to invoke the ASP.NET compiler Joseph Farmer ASP .Net 3 06-01-2005 04:35 PM



Advertisments