Skip to main content



      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 05:19 Go to next message
Eclipse UserFriend
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 04:24 Go to previous messageGo to next message
Eclipse UserFriend
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 06:17 Go to previous message
Eclipse UserFriend
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: Tue May 06 03:38:45 EDT 2025

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

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

Back to the top