tags:

views:

149

answers:

2

I opened hello.cpp. Why isn't there File -> Compile -> hello.cpp? What is an other easy way, if any?

A: 

The best way its to create an empty project add your hello.cpp then Visual Studio will build your program.

Daniel A. White
+2  A: 

The file must be part of a project before you can compile/build it. Starting with VS 2005 (or maybe 2008), you can use File -> New -> Project From Existing Code to wrap a project around source files.

Tim Sylvester
It's kinda a pain in the ass if you're used to being able to just type gcc Hello.cpp. But overall it gives you a nice view graph of your application files, and classes.
NoMoreZealots
IT WORKS! IT WORKS! IT WORKS! THANK YOU SO MUCH!!!
Delirium tremens