0

I am really confused when the GNAT keeps telling me that I have an undefined error when I try to import a package.

This is the where the error occurs in the source code:

with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure WordCount is package ASU renames Ada.Strings.Unbounded; use ASU; package StringStack is new ProtectedStack(100, ASU.Unbounded_String); 

It keeps telling me that the ProtectedStack is undefined. Since the ProtectedStack is provided, so I have to assume that this error is caused by mine... I just start to work with Ada. Could anyone please tell me how to solve this problem?

1 Answer 1

4

You probably need to add with ProtectedStack;.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.