Solved

Compiling C++

Posted on 2004-09-11
5
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

705 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