Solved

Compiling C++

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

757 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