I am having a similar issue as this post. However, on build I have 0 errors, 0 warning, and 0 messages.
I took a look at Project -> Properties but I do not seem to have a linker option [which appears to be a typical fix that others have used to solve this issue].
I have also tried Rebuilding Solution and then running but that does not seem to work either...
Based on the aforementioned similar issue I understand the premise that "when an exe cannot be created [or in my case - found]... then naturally it cannot be run as it does not exist". However, I do not understand where the disconnect is occurring that is preventing this file from either being found or created...
Any help sorting this out would be greatly appreciated. Cheers.
I keep getting this error with these lines of code:
include
int main[]
{
cout >;
system["pause"];
return 0;
}
"The system cannot find the file specified"
asked Jul 30, 2013 at 12:15
Mr. SupashevaMr. Supasheva
1831 gold badge2 silver badges13 bronze badges
4
The system cannot find the file specified usually means the build failed [which it will for your code as you're missing a #
infront of include
, you have a stray >>
at the end of your cout
line and you need std::
infront of cout] but you have the 'run anyway' option checked which means it runs an executable that doesn't exist. Hit F7 to just do a build and make sure it says '0 errors' before you try running it.
Code which builds and runs:
#include
int main[]
{
std::cout Open > Folder, and then browse to the code location. On the context [right-click] menu of a folder containing code, choose the Open in Visual Studio command. Choose the Open Folder link on the start window.