Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to import a project with .c files containing c++ code ?
How to import a project with .c files containing c++ code ? [message #224585] Tue, 07 October 2008 09:19 Go to next message
mermoz is currently offline mermozFriend
Messages: 2
Registered: July 2009
Junior Member
Hi ,
I want to import a c++ project in CDT that have .c and .h files containing
c++ code ?
I get syntax errors when in I open the .c files in the editor.
I'm using CDT 5.0.1
thanks

Mermoz
Re: How to import a project with .c files containing c++ code ? [message #224716 is a reply to message #224585] Wed, 08 October 2008 08:24 Go to previous messageGo to next message
Anton Leherbauer is currently offline Anton LeherbauerFriend
Messages: 490
Registered: July 2009
Senior Member
mermoz wrote:
> Hi ,
> I want to import a c++ project in CDT that have .c and .h files containing
> c++ code ?
> I get syntax errors when in I open the .c files in the editor.
> I'm using CDT 5.0.1 thanks
>
> Mermoz
>

..c files are parsed as C code, not C++, by default.
You can override the defaults in the project properties under C/C++
General > File Types.

HTH
--
Anton Leherbauer
Wind River Systems, Austria
CDT Committer - http://www.eclipse.org/cdt
DSDP/DD Committer - http://www.eclipse.org/dsdp/dd
Re: How to import a project with .c files containing c++ code ? [message #224742 is a reply to message #224716] Thu, 09 October 2008 10:17 Go to previous message
mermoz is currently offline mermozFriend
Messages: 2
Registered: July 2009
Junior Member
Thank you for your answer Anton. I can now compile my project.
best regards
mermoz
Previous Topic:CDT 4.0.3 and Missing Builder error
Next Topic:indexer performance
Goto Forum:
  


Current Time: Fri Aug 23 11:12:43 GMT 2024

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

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

Back to the top