1.

Solve : Urgent Help Needed?

Answer»

Quote from: Computer Beginner on April 19, 2009, 05:24:15 AM

Yes it is definitely the same folder.

It is weird. It just doesn't recognize the 'cl' command.

Let's start at the beginning. How were you doing this before?

Quote from: You
When I create a new cpp source file, and try to compile it on the visual studio command prompt, using 'cl /EHsc filename.cpp',

How did you get to the "visual studio command prompt"?

I open up the visual C++ express edition 2008

File>open>file.cpp

tools>visual studio command promptMaybe some tips here

http://www.devsource.com/c/a/Using-VS/Working-at-the-Visual-Studio-Command-Line/

It says this:

Quote
You might think that accessing the command line is a simple matter of clicking the Start\Programs\Accessories\Command Prompt shortcut. That shortcut opens a command prompt, but it's not the right one. This command prompt LACKS the required environment variables, especially the path information to Visual Studio.

so that must mean that the batch file created on my desktop won't WORK. I can get to the visual studio command prompt and make it work by typing cd /directory and then compiling, it is just a matter of setting it so it always has the right directory =s.


There ya go. I didn't know that either...

I still don't know how to set the command prompt to the correct directory. =S

Thanks for your help though!So are you always going to keep your cpp files in the same directory? Surely you are going to create a different directory for each new project? Well I guess I probably will.

In that case...it's FINE! It isn't much of a problem typing one line anyway.

Thanks for all your help!


Discussion

No Comment Found