Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Newbie C++ Linker Problems
Newbie C++ Linker Problems [message #721939] Sat, 03 September 2011 13:59
Eclipse UserFriend
Ok guys, so first of all I want to warn you that I'm a bit of a newbie programer and although I know some basic stuff, the details are fuzzy.
I installed Eclipse and the C/C++ plugins. I'm using VC++ as the tool chain. I'm trying to compile the Hello World program and I'm running into the following problems.

Description Resource Path Location Type
LNK1561: entry point must be defined hello4 line 0 C/C++ Problem
Symbol 'cout' could not be resolved hello_main.cpp /hello4 line 11 Semantic Error
Symbol 'endl' could not be resolved hello_main.cpp /hello4 line 11 Semantic Error

I'm pretty sure this is a linker error, but what I don't understand is that all of the library and include files are seen on the left hand side under the 'Includes' tab of the project. They have the following directory C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include. I have also changed the properties of the linker to include the V.S. libraries and includes by going under project->properties->c/c++ build->settings and adding the appropriate paths. Any help with this will be much appreciated. Here is the code snippet if it helps.

/*
* hello_main.cpp
*
* Created on: Sep 3, 2011
* Author: Sasho
*/
#include <iostream>
using namespace std;

int main() {
cout << "Hello Bitches"<<endl;
return 0;
}



Previous Topic:How to avoid "Choose a configuration to run"
Next Topic:Few questions
Goto Forum:
  


Current Time: Sat Jul 12 22:41:39 EDT 2025

Powered by FUDForum. Page generated in 0.03300 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top