| Bookmarks: difference between C and C++? [message #185604] |
Wed, 21 February 2007 13:57  |
Eclipse User |
|
|
|
Hi,
When using bookmarks,is there a difference between C and C++? I'm able
to set bookmarks in a .cpp or .hpp file, but not in a .c or .h file.
What's the difference?
Best rgds,
--Geert
|
|
|
|
|
| Re: Bookmarks: difference between C and C++? [message #185925 is a reply to message #185827] |
Fri, 23 February 2007 13:15   |
Eclipse User |
|
|
|
Norbert Ploett wrote:
> Geert,
>
> my guess is you have created a Managed Make C++ project. This project type
> does not treat .c as source file out of the box (not sure about .h, though).
> So when you open a .c file you don't get the C Editor but rather a simple
> TextEditor, which does not feed the outline.
>
> Not sure if the text editor supports bookmarks though.
>
> Regards,
>
>
> Norbert
>
>
>
Well, you're correct Norbert in that it was a standard C++ project. But
the things you mentioned will be equally true for both a managed as well
as a standard C++ project.
It's anyhow weird such project treats .c files differently...
But ok, if that's the case, so be it, isn't it?
Thanks for your response.
Best rgds,
--Geert
|
|
|
|
|
|
| Re: Bookmarks: difference between C and C++? [message #187574 is a reply to message #187566] |
Thu, 15 March 2007 10:30  |
Eclipse User |
|
|
|
At the root of this may be the fact that there are separate parsers for C and
C++. C is not a proper subset of C++ and there were many performance and
correctness issues that were solved when the parser was split in the 3.0 time frame.
-Andrew
Delicia wrote:
> I too am interested in Scott's question.
> Is there any particular reason why CDT decided to treat .c files ONLY as C
> sources and not C++ sources?
>
> I have a toolchain based on the MBS.
> Is it safe if I have .c files are recognised by both, C & C++ projects?
>
> Thanks,
> Delicia.
>
>
> "Scott Bronson" <brons_eclipsepost@rinspin.com> wrote in message
> news:espn29$gc1$1@utils.eclipse.org...
>> Norbert Ploett wrote:
>>>> It's anyhow weird such project treats .c files differently...
>>> this was much-disputed in the mailing list sometime ago. Different
>>> usecases
>>> require different solutions ...
>> I know a large number of mixed C/C++ projects, and C compatibility was
>> an important design requirement of C++...
>>
>> So why would the CDT designers choose to make C++ projects not work with
>> C files? Baffled,
>>
>> - Scott
>
>
|
|
|
Powered by
FUDForum. Page generated in 1.17156 seconds