I got VS 2010. Made a simple program (Sample.cpp). Went to the VS Command prompt. C:\...>cl -GX Sample.cpp. Access is denied, why? How do i get access to my own file?
I am running windows 7.
the program is simple as such:
/*
This is a simple C++ program.
*/
#include <iostream>
using namespace std;
// A C++ program begins at main().
int main()
{
cout << "C++ is power programming.";
return 0;
}
saved with word pad and tried to compile to exe. please help.
Did what jim suggested, wrote all in new wpp program. Changed the (-) to (/). VS 2010 says "Access is Denied"
I am running windows 7.
the program is simple as such:
/*
This is a simple C++ program.
*/
#include <iostream>
using namespace std;
// A C++ program begins at main().
int main()
{
cout << "C++ is power programming.";
return 0;
}
saved with word pad and tried to compile to exe. please help.
Did what jim suggested, wrote all in new wpp program. Changed the (-) to (/). VS 2010 says "Access is Denied"