Don't understand this error

4 messages Options
Embed this post
Permalink
Chris Saunders-4

Don't understand this error

Reply Threaded More More options
Print post
Permalink
I have just started a project and have not added any of my own code yet.  Here are the changes I have made to the project settings: Are types attached by default" - True, Void safety - Complete void safty, Syntax - Standard syntax.  I have also selected the void safe base library.  When I attempt to compile I get this error:

4 Syntax Error: Syntax error at line 537. MANAGED_POINTER (elks) 537, 27
Syntax error at line 537 in class MANAGED_POINTER
Specified type "NATURAL_16" is not a valid type for integer constant "0x00FF"

            else
                l_low := {NATURAL_16} 0x00FF & read_natural_8 (pos)
--------------------------------------^
                l_high := read_natural_8 (pos + natural_8_bytes)  

Is there something faulty in my project settings?

Regards
Chris Saunders

[Non-text portions of this message have been removed]

Emmanuel Stapf

RE: Don't understand this error

Reply Threaded More More options
Print post
Permalink
> Is there something faulty in my project settings?

This happens when switching from a void-safe library to a non-void-safe library.
If the error still happen after recompiling from scratch, then most likely you are
still referencing some libraries using void-safe base, and some others using
non-void-safe base.

Regards,
Manu

------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------  
Paul Bates [ES]

Re: Don't understand this error

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chris Saunders-4
Typically this is because you reference the safe version of Eiffel Base but are still using the unsafe version of a precompiled library.

Paul.

--- In [hidden email], "Chris Saunders" <evas@...> wrote:

>
> I have just started a project and have not added any of my own code yet.  Here are the changes I have made to the project settings: Are types attached by default" - True, Void safety - Complete void safty, Syntax - Standard syntax.  I have also selected the void safe base library.  When I attempt to compile I get this error:
>
> 4 Syntax Error: Syntax error at line 537. MANAGED_POINTER (elks) 537, 27
> Syntax error at line 537 in class MANAGED_POINTER
> Specified type "NATURAL_16" is not a valid type for integer constant "0x00FF"
>
>             else
>                 l_low := {NATURAL_16} 0x00FF & read_natural_8 (pos)
> --------------------------------------^
>                 l_high := read_natural_8 (pos + natural_8_bytes)  
>
> Is there something faulty in my project settings?
>
> Regards
> Chris Saunders
>
> [Non-text portions of this message have been removed]
>


Chris Saunders-4

Re: Re: Don't understand this error

Reply Threaded More More options
Print post
Permalink
Thanks to all who responded.  I forgot this time to not use a precompiled library, I usually now try not to use one by habit but I overlooked this.

Regards
Chris Saunders


From: Paul Bates
Sent: Tuesday, June 16, 2009 4:52 PM
To: [hidden email]
Subject: [eiffel_software] Re: Don't understand this error





Typically this is because you reference the safe version of Eiffel Base but are still using the unsafe version of a precompiled library.

Paul.

--- In [hidden email], "Chris Saunders" <evas@...> wrote:

>
> I have just started a project and have not added any of my own code yet. Here are the changes I have made to the project settings: Are types attached by default" - True, Void safety - Complete void safty, Syntax - Standard syntax. I have also selected the void safe base library. When I attempt to compile I get this error:
>
> 4 Syntax Error: Syntax error at line 537. MANAGED_POINTER (elks) 537, 27
> Syntax error at line 537 in class MANAGED_POINTER
> Specified type "NATURAL_16" is not a valid type for integer constant "0x00FF"
>
> else
> l_low := {NATURAL_16} 0x00FF & read_natural_8 (pos)
> --------------------------------------^
> l_high := read_natural_8 (pos + natural_8_bytes)
>
> Is there something faulty in my project settings?
>
> Regards
> Chris Saunders
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]