Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse/Indigo with CDT under openSUSE 12.1(iostream included but cout, endl, std not found)
Eclipse/Indigo with CDT under openSUSE 12.1 [message #807470] Sun, 26 February 2012 14:28 Go to next message
Trueman C is currently offline Trueman CFriend
Messages: 8
Registered: February 2011
Junior Member
After some troubles with icon-resources and criss-cross-parsing I decided to leave win-xp to make a trial under openSUSE 12.1 with eclipse-ide with cdt for linux-developers. I downloaded the package http://eclipse.org/downloads/packages/eclipse-ide-cc-linux-developers-includes-incubating-components/indigosr2 unpacked and started eclipse and updated it using eclipses own repos, everything works fine but when building

#include <iostream>
using namespace std;

int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}

even though iostream is found I get three errors: Symbol 'cout', 'endl' and 'std' could not be resolved

These paths are included:
/usr/i586-suse-linux/include
/usr/include
/usr/include/c++/4.6
/usr/include/c++/4.6/backward
/usr/include/c++/4.6/i586-suse-linux
/usr/lib/gcc/i586-suse-linux/4.6/include
/usr/lib/gcc/i586-suse-linux/4.6/include-fixed
/usr/local/include

What is wrong? Thanks to everybody, who can help
best regards, trueman c
Re: Eclipse/Indigo with CDT under openSUSE 12.1 [message #807480 is a reply to message #807470] Sun, 26 February 2012 14:45 Go to previous message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
maybe this answer helps:

http://www.eclipse.org/forums/index.php/mv/msg/281107/785935/#msg_785935

regards,
klaus


Previous Topic:How to see all unresolved names for the project?
Next Topic:"undefined reference to" error is driving me crazy
Goto Forum:
  


Current Time: Sat Apr 27 05:15:40 GMT 2024

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

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

Back to the top