Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » new installation of eclipse-CDT does not understand C++ language
new installation of eclipse-CDT does not understand C++ language [message #963469] Mon, 29 October 2012 21:04 Go to next message
Olivier Planchon is currently offline Olivier PlanchonFriend
Messages: 3
Registered: October 2012
Junior Member
Hi,
After several problems with Eclipse I removed my installation and downloaded this file:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-parallel-juno-SR1-linux-gtk-x86_64.tar.gz

I copied the archive contents in my home directory and lauched eclipse.
I asked for a new "hellow world C++ project".
The project does not compile because the words cin and cout are not recognized.
strangely, the #include <iostream> is okay to the compiler.

I am very new to eclipse. I spent the whole day trying to get it work. Your help is more than welcome Smile
Re: new installation of eclipse-CDT does not understand C++ language [message #964371 is a reply to message #963469] Tue, 30 October 2012 13:19 Go to previous messageGo to next message
Olivier Planchon is currently offline Olivier PlanchonFriend
Messages: 3
Registered: October 2012
Junior Member
This is a screenshot of what I get.
Thanks for helping Smile

index.php/fa/12141/0/
Re: new installation of eclipse-CDT does not understand C++ language [message #964376 is a reply to message #963469] Tue, 30 October 2012 13:17 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/29/2012 8:51 PM, Olivier Planchon wrote:
> Hi, After several problems with Eclipse I removed my installation and
> downloaded this file:
>
> http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-parallel-juno-SR1-linux-gtk-x86_64.tar.gz
>
>
> I copied the archive contents in my home directory and lauched eclipse.
> I asked for a new "hellow world C++ project".
> The project does not compile because the words cin and cout are not
> recognized.
> strangely, the #include <iostream> is okay to the compiler.
>
> I am very new to eclipse. I spent the whole day trying to get it work.
> Your help is more than welcome :)

Olivier,

You'll likely want the help of the Eclipse CDT forum rather than this
one. See

http://www.eclipse.org/forums/index.php/t/161206/

Bonne chance !
Re: new installation of eclipse-CDT does not understand C++ language [message #965438 is a reply to message #964376] Wed, 31 October 2012 08:28 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1968
Registered: July 2009
Senior Member
That is an error message from the Eclipse static code analyzer CODAN (semantic error) not from the compiler. CODAN depends on a correct index about header files and symbols. The index seems to be incorrect in your case. Select your project and open the context menu. Select Index->Rebuild. This should fix your problem (usually the index is updated automatically).

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: new installation of eclipse-CDT does not understand C++ language [message #965601 is a reply to message #965438] Wed, 31 October 2012 11:12 Go to previous messageGo to next message
Olivier Planchon is currently offline Olivier PlanchonFriend
Messages: 3
Registered: October 2012
Junior Member
Axel,
Many thanks for helping.
Your trick did not worked.
I played around with options in the same menu, then found that inclusion of <iostream> was unresolved.
How can I fix this ?

[Updated on: Wed, 31 October 2012 11:13]

Report message to a moderator

Re: new installation of eclipse-CDT does not understand C++ language [message #971964 is a reply to message #965601] Mon, 05 November 2012 08:53 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1968
Registered: July 2009
Senior Member
Olivier Planchon wrote on Wed, 31 October 2012 12:12
Axel,
Many thanks for helping.
Your trick did not worked.
I played around with options in the same menu, then found that inclusion of <iostream> was unresolved.
How can I fix this ?

The include path for system headers like iostream should be found automatically by Eclipse. Did you select the correct tool chain (gcc) in Project Properties?


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Missing "includes" item in Project Explorer (Juno)
Next Topic:Eclipse is unable to find the correct include path
Goto Forum:
  


Current Time: Wed Nov 26 13:01:30 GMT 2014

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

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