comp.lang.ada
 help / color / mirror / Atom feed
* -gnatW8 and Ada.Numerics
@ 2006-07-13 17:42 Y.Tomino
  2006-07-14  5:49 ` Martin Krischik
  0 siblings, 1 reply; 4+ messages in thread
From: Y.Tomino @ 2006-07-13 17:42 UTC (permalink / raw)


Hello.
I take -gnatW8 switch to use UTF-8 string literal with gcc-4.1, also I
want to use Ada.Numerics package.
But compiler reports "illegal wide character" error.

Test:
with Ada.Numerics;
procedure Test is
begin
  null;
end Test;

>gnatmake -gnat05 -gnatW8 test
gcc -c -gnat05 -gnatW8 test.adb
a-numeri.ads:24:04: illegal wide character
gnatmake: "test.adb" compilation error

How should I do to compile it ?
It seems allowed by the document:
> UTF-8 encoding (brackets encoding also recognized)
(http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gnat_ugn_unw/Character-Set-Control.html)

I tried with GNAT GPL 2006.
GNAT GPL 2006 can compile it.

-- 
YT



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-14 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 17:42 -gnatW8 and Ada.Numerics Y.Tomino
2006-07-14  5:49 ` Martin Krischik
2006-07-14 12:28   ` Björn Persson
2006-07-14 13:05     ` Ludovic Brenta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox