Sunday, December 9, 2007

To compile a Visual C++ .NET console application on the command line

To compile native C++ program.

On commad line type : cl simple.cpp
The
cl.exe compiler generates an executable program simple.exe.
Other generated Files. 
obj file

To compile C++ CLI program.

At the command line prompt, type cl /clr simpleclr.cpp and press Enter:
The
cl.exe compiler generates an executable program simpleclr.exe.
Other generated Files. 
obj file,  .manifest file

 

No comments: