Solved

Compiling C++

Posted on 2004-09-11
5
243 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now