How to compile from a new file in VC++ 08?

The problem is that when I create a New .cpp file, without the "Project" crap, it won't let me to compile it.

On the other hand in Dev C++ I can compile a single .cpp file no problem.

How do I do it in VC++ 2008 Express?

Thanks.
You can't from the IDE, but I think the command line compiler may be able to do it. Look for it in the start menu. It's called Visual Studio 2008 Command Prompt. Not the x64 one. That one compiles for x86-64.
Add the project crap. Then add the .cpp file to the crap. Then you can compile and get binary crap. LOL!

Seriously, I don't know if possible, but why in the world would you waste time trying to bypass a project file that is created automatically for you with the appropriate compiler and linker settings and that take just a few kilobytes??? You would have been done with it several times over by now.
The main pain in the ass is that I have to create projects over and over again for every new little program I code.

Even though I don't care if project crap adds more weight to the program, it's still too unreasonable to do so, until I get to some serious programming. Then I will need to organize my stuff, but who gives a pickle when it's just a simple .cpp file.
Last edited on
I see. Then try helios' suggestion. It is quite reasonable. Actually, open Visual Studio and add the project crap, etc. Then go to the project properties. Around the compiler and linker options, you'll see an option at the end that shows the command line. I bet that you can use that to compile and link.
Ok thanks.
Topic archived. No new replies allowed.