Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


IMPORTANT: Counter Class Not Compilling

IMPORTANT: Counter Class Not Compilling

IMPORTANT: Counter Class Not Compilling

Hi i am very new to Eiffel but what i am doing is trying to write a COUNTER class, when i try to compile this it gives the following error

Error code: VD27
Configuration error: There is an inconsistency between the Root clause
  of the ecf file and the creation clause of the system's root
What to do:
  1) If the system's root class has a creation procedure: make
     sure that the name listed in the Root clause is that of a
     feature which is a creation procedure of the root class
  2) If the system's root class does not have a creation procedure:
     make sure that that the Root clause does not list a creation
Root class: COUNTER
Invalid procedure name: value "

The code i am using for this is:

    description    : "System's root class"
    date: "$Date$"
    revision: "$Revision$"

feature -- Initialization

     value : INTEGER

    increment is
        value := value + 1

end -- class COUNTER

The code has been taken from a book but can somebody tell me why this occurs. It read that this class does not have a creation procedure: the Eiffel rules ensure that the value attribute will be initialized to 0, as required.  Can somebdody tell me why this is still giving me erros.

RE: IMPORTANT: Counter Class Not Compilling

You need to precise the root class and the creation routine of your system.

That is to say, the main entry point.
you can have for instance


feature -- Initialization
    make is
        -- Instanciate application
         c: COUNTER
         create c
         io.put_string ("c=")
         io.put_integer (c.value)

Hope this helps.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close