comp.lang.ada
 help / color / mirror / Atom feed
* Float IO & possible gcc screw up (newbie)
@ 2001-03-10 18:20 Pieter Thysebaert
  2001-03-10 18:44 ` Erik Sigra
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pieter Thysebaert @ 2001-03-10 18:20 UTC (permalink / raw)


Hello ,

I'm kinda new to Ada.

I've just compiled my first package (I think, well I've ended up with an .o
file)
Now I wrote a little test program.
However this test program needs to output variables of type 'double'.
How do I do that ?
I've read about "instantiating Float_IO" ... but I have not been able to get
it to work.

All the above was done (or not yet done) using gnat for MS-DOS (or windows).
But I would like to get a linux version working.
However , the ms-dos version definitely has a file called "gcc" .
How can I install gnat for linux without screwing my existing (and working)
gcc version ?

Pieter







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

* Re: Float IO & possible gcc screw up (newbie)
  2001-03-10 18:20 Float IO & possible gcc screw up (newbie) Pieter Thysebaert
@ 2001-03-10 18:44 ` Erik Sigra
  2001-03-10 19:39 ` David C. Hoos, Sr.
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Erik Sigra @ 2001-03-10 18:44 UTC (permalink / raw)
  To: comp.lang.ada, Pieter Thysebaert

l�rdagen den 10 mars 2001 19:20 skrev Pieter Thysebaert:
> How can I install gnat for linux without screwing my existing (and working)
> gcc version ?

Use the RPMs from <http://www.gnuada.org/alt.html>.




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

* Re: Float IO & possible gcc screw up (newbie)
  2001-03-10 18:20 Float IO & possible gcc screw up (newbie) Pieter Thysebaert
  2001-03-10 18:44 ` Erik Sigra
@ 2001-03-10 19:39 ` David C. Hoos, Sr.
  2001-03-10 19:44 ` David C. Hoos, Sr.
  2001-03-12 18:07 ` Stephen Leake
  3 siblings, 0 replies; 5+ messages in thread
From: David C. Hoos, Sr. @ 2001-03-10 19:39 UTC (permalink / raw)


Ada Float is C Float
and Ada Long_Float is C Double.

"Pieter Thysebaert" <pieter.thysebaert@pandora.be> wrote in message
news:pfuq6.12874$486.1463506@afrodite.telenet-ops.be...
> Hello ,
>
> I'm kinda new to Ada.
>
> I've just compiled my first package (I think, well I've ended up with an
.o
> file)
> Now I wrote a little test program.
> However this test program needs to output variables of type 'double'.
> How do I do that ?
> I've read about "instantiating Float_IO" ... but I have not been able to
get
> it to work.
>
> All the above was done (or not yet done) using gnat for MS-DOS (or
windows).
> But I would like to get a linux version working.
> However , the ms-dos version definitely has a file called "gcc" .
> How can I install gnat for linux without screwing my existing (and
working)
> gcc version ?
>
> Pieter
>
>
>
>





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

* Re: Float IO & possible gcc screw up (newbie)
  2001-03-10 18:20 Float IO & possible gcc screw up (newbie) Pieter Thysebaert
  2001-03-10 18:44 ` Erik Sigra
  2001-03-10 19:39 ` David C. Hoos, Sr.
@ 2001-03-10 19:44 ` David C. Hoos, Sr.
  2001-03-12 18:07 ` Stephen Leake
  3 siblings, 0 replies; 5+ messages in thread
From: David C. Hoos, Sr. @ 2001-03-10 19:44 UTC (permalink / raw)


install the gnat rpms from http://www.gnuada.org/rpms313p.html#GNAT, and
you'll get gnatgcc
instead of gcc.

"Pieter Thysebaert" <pieter.thysebaert@pandora.be> wrote in message
news:pfuq6.12874$486.1463506@afrodite.telenet-ops.be...
> Hello ,
>
> I'm kinda new to Ada.
>
> I've just compiled my first package (I think, well I've ended up with an
.o
> file)
> Now I wrote a little test program.
> However this test program needs to output variables of type 'double'.
> How do I do that ?
> I've read about "instantiating Float_IO" ... but I have not been able to
get
> it to work.
>
> All the above was done (or not yet done) using gnat for MS-DOS (or
windows).
> But I would like to get a linux version working.
> However , the ms-dos version definitely has a file called "gcc" .
> How can I install gnat for linux without screwing my existing (and
working)
> gcc version ?
>
> Pieter
>
>
>
>





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

* Re: Float IO & possible gcc screw up (newbie)
  2001-03-10 18:20 Float IO & possible gcc screw up (newbie) Pieter Thysebaert
                   ` (2 preceding siblings ...)
  2001-03-10 19:44 ` David C. Hoos, Sr.
@ 2001-03-12 18:07 ` Stephen Leake
  3 siblings, 0 replies; 5+ messages in thread
From: Stephen Leake @ 2001-03-12 18:07 UTC (permalink / raw)


"Pieter Thysebaert" <pieter.thysebaert@pandora.be> writes:

> Hello ,
> 
> I'm kinda new to Ada.
> 
> I've just compiled my first package (I think, well I've ended up with an .o
> file)
> Now I wrote a little test program.
> However this test program needs to output variables of type 'double'.
> How do I do that ?
> I've read about "instantiating Float_IO" ... but I have not been able to get
> it to work.

Post your current best effort, so we can see what you are doing wrong.


-- 
-- Stephe



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

end of thread, other threads:[~2001-03-12 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-10 18:20 Float IO & possible gcc screw up (newbie) Pieter Thysebaert
2001-03-10 18:44 ` Erik Sigra
2001-03-10 19:39 ` David C. Hoos, Sr.
2001-03-10 19:44 ` David C. Hoos, Sr.
2001-03-12 18:07 ` Stephen Leake

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