Ada中未定义的包

Ada中未定义的包,ada,Ada,当GNAT不断地告诉我在尝试导入包时有一个未定义的错误时,我真的很困惑 这是源代码中发生错误的地方: 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

当GNAT不断地告诉我在尝试导入包时有一个未定义的错误时,我真的很困惑

这是源代码中发生错误的地方:

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);
它一直告诉我ProtectedStack未定义。 由于提供了ProtectedStack,所以我必须假设此错误是由我的错误引起的。。。
我刚开始和Ada一起工作。有谁能告诉我如何解决这个问题吗?

您可能需要使用ProtectedStack添加

您可能需要使用ProtectedStack添加