From: axtens on
G'day everyone

In the process of attempting to change the spitbol library into
something that uses Wide_Wide_String, I've been hitting a brick wall
with the following compile error:

C:\DOCUME~1\ALLUSE~1\DOCUME~1\Projects\BOS>build
Building debug version of dll
gcc -c -g -s -gnatn -gnatQ -gnatf -gnato -g -gnata -gnat05 -I- -gnatA
C:\DOCUME~1\ALLUSE~1\DOCUME~1\Projects\BOS\bos.adb
a-except.ads:327:26: run-time configuration error
a-except.ads:327:26: entity "Ada.Tags.Tag_Table" not defined
compilation abandoned due to previous error
gnatmake: "c:\docume~1\alluse~1\docume~1\projects\bos\bos.adb"
compilation error

gnatbind: Cannot find: bos.ali
gnatlink: debug\bos.ali not found
dlltool: Unable to open base-file: debug\bos.base
gnatlink: debug\bos.ali not found


I've copied g-spitbo.ad? and related files into the project folder and
renamed them to
Spitbol32.adb
Spitbol32.ads
Spitbol32-Patterns.adb
Spitbol32-Table_VString.ads
Spitbol32-Table_Integer.ads
Spitbol32-Table_Boolean.ads
Spitbol32-Patterns.ads

Then I've referenced them in my project as follows.

with Spitbol32; use Spitbol32;
with Spitbol32.Patterns; use Spitbol32.Patterns;
with Spitbol32.Table_Boolean; use Spitbol32.Table_Boolean;
with Spitbol32.Table_Integer; use Spitbol32.Table_Integer;
with Spitbol32.Table_VString; use Spitbol32.Table_VString;

At this point all I have are these declarations. I haven't actually
called any of the public functions/procedures as yet.

What's this error about? I can tell that a-except.ads can't see the
Tags_Table type in Ada.Tags, but can't figure what to do about it.

Ideas, anyone?

Kind regards,
Bruce.
From: axtens on
I should point out, too, that I've modified the spitbol libraries so
that they use Ada.Strings.Wide_Wide_* packages rather than the
original Latin-1 ones.

Bruce.
From: axtens on
On Dec 6, 3:10 pm, axtens <Bruce.Axt...(a)gmail.com> wrote:

and yes, I could tweak a-except.ads by adding a ref to Ada.Tags but
am, justifiably I think, reluctant to do that.

The issue seems to be related to moving to Wide_Wide_* as in the
following excerpt from the code:
....
-- G N A T . S P I T B O
L --
....

with Ada.Strings; use Ada.Strings;
with Ada.Strings.Wide_Wide_Unbounded.Aux;
use
Ada.Strings.Wide_Wide_Unbounded.Aux;

with GNAT.Debug_Utilities; use GNAT.Debug_Utilities;
with GNAT.IO; use GNAT.IO;

with Unchecked_Deallocation;

package body Spitbol32 is
....
end Spitbol32;


Kind regards,
Bruce.
From: Stephen Leake on
axtens <Bruce.Axtens(a)gmail.com> writes:

> In the process of attempting to change the spitbol library into
> something that uses Wide_Wide_String, I've been hitting a brick wall
> with the following compile error:
>
> C:\DOCUME~1\ALLUSE~1\DOCUME~1\Projects\BOS>build
> Building debug version of dll
> gcc -c -g -s -gnatn -gnatQ -gnatf -gnato -g -gnata -gnat05 -I- -gnatA
> C:\DOCUME~1\ALLUSE~1\DOCUME~1\Projects\BOS\bos.adb
> a-except.ads:327:26: run-time configuration error
> a-except.ads:327:26: entity "Ada.Tags.Tag_Table" not defined
> compilation abandoned due to previous error

This must be an unrelated bug; editing or renaming GNAT.Spitbol should
have absolutely no impact on Ada.Exceptions. It looks like an
installation problem; some .ali file has had a time stamp change, or
something.

Can you compile a simple Hello_World program?

Can you reinstall GNAT from scratch?

--
-- Stephe