Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » assert errors in CDT - Solution
assert errors in CDT - Solution [message #198445] Fri, 27 July 2007 06:47 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:missing GDB HARDWARE DEBUGGING
Next Topic:Newbie questions
Goto Forum:
  


Current Time: Sat Sep 13 01:29:59 EDT 2025

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

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

Back to the top