Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can not work out how this IDE functions?! Can not t I compile super simple stuff.
Can not work out how this IDE functions?! Can not t I compile super simple stuff. [message #870048] Sun, 06 May 2012 01:46 Go to next message
aNew Hobby is currently offline aNew HobbyFriend
Messages: 3
Registered: May 2012
Junior Member
Hi there... I am lookign at eclipse as I saw it mentioend a lot on forums when people as about great IDEs and from the little I have seen it looks good.

But I can nto get it to work at all...

#include <iostream>

int main()
{
	std::cout<<"This is a test"<<std::endl;
	
	std::cin.get();
	return 0;
}


Ths is the code I am testing... but it will not compile...

Quote:
Description Resource Path Location Type
Method 'get' could not be resolved main.cpp /Test line 7 Semantic Error
Symbol 'cin' could not be resolved main.cpp /Test line 7 Semantic Error
Symbol 'cout' could not be resolved main.cpp /Test line 5 Semantic Error
Symbol 'endl' could not be resolved main.cpp /Test line 5 Semantic Error



Any ideas?

[Updated on: Sun, 06 May 2012 01:46]

Report message to a moderator

Re: Can not work out how this IDE functions?! Can not t I compile super simple stuff. [message #870069 is a reply to message #870048] Sun, 06 May 2012 05:56 Go to previous messageGo to next message
aNew Hobby is currently offline aNew HobbyFriend
Messages: 3
Registered: May 2012
Junior Member
seasm I got this working... I just selected the hallowworld project and then editied it... not sure what running an empty project failed.
Re: Can not work out how this IDE functions?! Can not t I compile super simple stuff. [message #871159 is a reply to message #870069] Fri, 11 May 2012 08:00 Go to previous message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
Open the project's Properties window.
Go to C/C++ General -> Paths and Symbols -> tab Includes.
The path to the standard libraries must be listed.
Previous Topic:Why is it so difficult to get C++ to work?
Next Topic:Problems w/ Debug Configs, Attach to Application
Goto Forum:
  


Current Time: Fri Apr 26 15:34:31 GMT 2024

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

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

Back to the top