Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Editor does not recognize CPP syntax after adding c++ nature
Editor does not recognize CPP syntax after adding c++ nature [message #881341] Mon, 04 June 2012 11:22 Go to next message
Tobias Manthey is currently offline Tobias MantheyFriend
Messages: 2
Registered: June 2012
Junior Member
I have a Android project to which a added C++ nature.

But after adding the C++ nature the editor does not recognize the C++ syntax. I tried and its probably set to C syntax.

Eclipse 3.7.2 with latest CDT

It compiles fine.

The same file in a pure CPP project is fine. I attached 2 screenshots to document my doing.

Any help welcome.

Thanks
Tobias
  • Attachment: cdt1.jpg
    (Size: 71.29KB, Downloaded 89 times)
  • Attachment: cdt2.jpg
    (Size: 48.74KB, Downloaded 76 times)

[Updated on: Mon, 04 June 2012 11:24]

Report message to a moderator

Re: Editor does not recognize CPP syntax after adding c++ nature [message #881761 is a reply to message #881341] Tue, 05 June 2012 08:05 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
It does not completely ignore the C++ syntax. It just does not recognize the cv namespace.
Did you rebuild the index (context menu of Project)? Are there unresolved includes (context menu of Project: Index->Show unresolved includes)?


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Cannot seem to be able to compile with -O2
Next Topic:Keyboard: goto next build error (w/screenshot)
Goto Forum:
  


Current Time: Fri Dec 19 16:32:54 GMT 2014

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

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