| CDT misleads .c and .C file types [message #169815] |
Thu, 18 May 2006 03:28  |
Eclipse User |
|
|
|
I think the problem has to be with capital letters in extensions, as CDT
mistakes the .C extension treating it as .c and consequently as a C file
instead of a C++ file.
I have tried several eclipse + cdt + java vm version combinations and all
of them fail to resolve the .C extension as a C++ file.
Anybody having the same problem?
Anybody knows the solution?
I'm running a Linux Suse 10.0 over a Linux native partition and my locale
is US English.
Any help is welcomed.
Thanks in advance.
|
|
|
|
| Re: CDT misleads .c and .C file types [message #173481 is a reply to message #169839] |
Fri, 21 July 2006 19:35  |
Eclipse User |
|
|
|
> Jorge Diaz wrote:
>> I think the problem has to be with capital letters in extensions, as
>> CDT mistakes the .C extension treating it as .c and consequently as a
>> C file instead of a C++ file.
>>
>> Anybody having the same problem?
>> Anybody knows the solution?
>>
Anton Leherbauer wrote:
> There is an Eclipse platform limitation about case insensitive content
> types (see also https://bugs.eclipse.org/bugs/show_bug.cgi?id=105022),
> but as long as your CDT project has the C++ Nature, .C files should be
> handled as C++ code, even though the file Properties describe them as "C
> Source File".
>
Hi all,
yes, I can confirm this problem and it's rather a serious problem, as it
prevents the Indexer/Search facility to work correct.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=132201
As you can see from the change log, the bug has been fixed on the
CDT 4.x developement line. I just installed 3.1.0.200607170501
from the tar bundle to be found here:
http://download.eclipse.org/tools/cdt/builds/4.0.0/index.htm l
(Note this is not a "stable" build): The *.C files are still showed as
"C source file" in the properties dialog, but at least F3 ctrl-F3 are
working again, which is a big relief in a project with thousends of files...
Anyway, I would suggest to backport this fix to the stable line
if possible.
Cheers,
Hermann Vosseler
|
|
|
Powered by
FUDForum. Page generated in 0.05686 seconds