Solved

Compiling C++

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

Suggested Solutions

Title # Comments Views Activity
c++ getting the first 10 characters of a char* string 11 111
I could not build boost code, 10 115
Can Live bindings change TGrid Cell Colour ? 1 61
cmake and message 1 21
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. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

739 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