Editor initialisation error for .c files [message #94827] |
Thu, 19 February 2004 20:11  |
Eclipse User |
|
|
|
Please excuse my ignorance but I have only just started to use CDT and
hence don't know if my problem is a bug, a known limitiation or my own
stupidity.
I downloaded and installed CDT-2.0M7 on eclipse-3.0M7 on linux rh8.
I loaded an existing C project and found that it is unable to open an
editor for my C files. I managed to trace the problem and it appears that
it can't handle any C code that does initialisation of a struct by
element name.
I've found that the following code can't be loaded in an editor from an
existing file (Editor could not be initialized) nor if you type it into a
file can the file be saved (Save Failed:null)
<code>
struct funcs_f {
void (*init)(void);
};
void initfunc(void);
funcs_f functions = {
init: initfunc,
};
void initfunc(void)
{
}
</code>
If I remove or comment out the 'init:' it all works happily.
I couldn't see any references to this type of problem before but thought
I would do a sanity check here before raising a report.
Ross
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07167 seconds