assert errors in CDT - Solution [message #198445] |
Fri, 27 July 2007 06:47  |
Eclipse User |
|
|
|
Hi,
I have seen a few posts regarding asserts all of a sudden causing build errors.
To solve this I did the following...
1. Right click on the plugin showing errors (for me this was cdt.core)
2. Select Java Compiler from the tree on the left
3. Untick Project Specific Settings
For me this problem appeared after updating my CDT plugins, its casued by
the fact that assert wasn't availble in the 1.4 compiler. Turning this option
off means all plugins will use the setting specified by the eclipse wokspace
settings. Of course if you do want to specify a particular compiler simply
select the correct one in the list and leave the option ticked.
Marcus.
|
|
|
Re: assert errors in CDT - Solution [message #198474 is a reply to message #198445] |
Fri, 27 July 2007 11:10  |
Eclipse User |
|
|
|
m ob wrote:
>
> Hi,
>
> I have seen a few posts regarding asserts all of a sudden causing build
> errors. To solve this I did the following...
>
> 1. Right click on the plugin showing errors (for me this was cdt.core)
> 2. Select Java Compiler from the tree on the left
> 3. Untick Project Specific Settings
>
> For me this problem appeared after updating my CDT plugins, its casued
> by the fact that assert wasn't availble in the 1.4 compiler. Turning
> this option off means all plugins will use the setting specified by the
> eclipse wokspace settings. Of course if you do want to specify a
> particular compiler simply select the correct one in the list and leave
> the option ticked.
>
> Marcus.
>
>
Actually, to be clear (I can't tell what option you changed), the 1.4
compiler supports assert, but the default 1.4 compatibility in Eclipse
is to have source compatibility with Java 1.3. You have to change the
compiler options for 1.4 to allow 1.4 source compatibility.
===========================
Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt
|
|
|
Powered by
FUDForum. Page generated in 0.16655 seconds