From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d26c6b989a75af31,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-11 02:14:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed1.bredband.com!bredband!uio.no!uninett.no!not-for-mail From: Reinert Korsnes Newsgroups: comp.lang.ada Subject: Problems with gcc, gnat and RedHat 8 Date: Fri, 11 Oct 2002 11:14:33 +0200 Organization: UNINETT Message-ID: NNTP-Posting-Host: sthrkou.ffi.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: dolly.uninett.no 1034328088 2549 193.156.99.159 (11 Oct 2002 09:21:28 GMT) X-Complaints-To: news-abuse@uninett.no NNTP-Posting-Date: Fri, 11 Oct 2002 09:21:28 +0000 (UTC) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:29706 Date: 2002-10-11T11:14:33+02:00 List-Id: Hi, I just installed RedHat 8 on my computer and try to use Ada from the RedHat package. Seems like I have some problems. Could someone with similar configuration try this program below ? ---------------------------------------------------------- with Ada.Numerics.Generic_Elementary_Functions,Text_IO; use Text_IO; procedure test1 is type Real is new Float; package Flt_Io is new Text_IO.Float_Io (Real); package Int_Io is new Text_IO.Integer_Io (Integer); package E_F is new Ada.Numerics.Generic_Elementary_Functions (Real); use E_F,Flt_Io,Int_Io; N : Integer := 10; x : Real := 10.0; begin for I in 1 .. N loop Put(" x: "); Put (x,4,7,0); Put(" sin(x): "); Put (sin(x),4,7,0); New_Line (1); end loop; end; ----------------------------------------------------------------- ** I use the following commands (via Makefile): gnatmake test1.adb gcc -c test1.adb gnatbind -x test1.ali gnatlink test1.ali ** And I get the following output: host$ ./test1 x: 10.0000000 sin(x): 0.0000000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 x: 10.0000000 sin(x): 100663214.2500000 ** sin(x) > 1 ? ** What I do wrong here ? Or something wrong in RH8's Ada ? reinert