Solved

Compiling C++

Posted on 2004-09-11
5
257 Views
Last Modified: 2010-04-01
First, I am new to C++. (but not to coding)
I am using the Microsoft Compiler. and have a problem compiling.  I am sure that it is not the code, but I cant remember how to correct so that it can compile.  The error message says "Unable to start debugging...Cannot find the file specified". (I believe it is a property selection selection issue) can someone advise me please?
Thanks much-Annie
0
Comment
Question by:bananaamy
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 12035616
Are there any error messages when you are compiling? Also, check your project settings and make sure that these under "Debug" match the "Output" settings under "Link".
0
 

Author Comment

by:bananaamy
ID: 12035630
the compiler list it as a a "fail", and then an information window pops up with the message.. "Unable to start debugging...Cannot find the file specified".
 I dont see any output settings under debug.
0
 
LVL 86

Expert Comment

by:jkr
ID: 12035641
>> the compiler list it as a a "fail"

So, what are the exact error messages and your corresponding source code?
0
 

Author Comment

by:bananaamy
ID: 12035652
My source code simply opens a blank screen. I didnt ask it to do anything. I just am starting to play with this code.

#include <iostream>
using namespace standard;

int main()
{
      return 0;
}
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 12035662
Aaah, got it - that should be

#include <iostream>
using namespace std; // <--- !!!

int main()
{
    return 0;
}

STL's namespace is called 'std', not 'standard'.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question