comp.lang.ada
 help / color / mirror / Atom feed
* DOS GNAT 1.83 returns 'unknown file type' on compilation
@ 1994-11-02  2:06 Roger Labbe
  1994-11-03 11:34 ` Robert Dewar
  0 siblings, 1 reply; 7+ messages in thread
From: Roger Labbe @ 1994-11-02  2:06 UTC (permalink / raw)



I think I just missed a thread on installing GNAT 1.83, so
I apologize if I am revisiting a recent topic. However,
I just tried to install GNAT 1.83 on my dos system (MSDOS 6.21)
following the installation instructions. When I try
to compile a file using gcc I always get back an error message stating

Unknown file type

followed by one of 0x6957, 0x2d2d, 0x7270.

I installed by copying all 3 distribution zip files into the directory
c:\djgpp and using pkunzip to unzip them with the -d option.
I copied the supplied autoexec.bat commands into a bat file which I call
from my autoexec.bat file and rebooted the system. I used the gcc supplied
with the distribution as I did not already have gcc installed on 
my computer.


Roger Labbe





^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: DOS GNAT 1.83 returns 'unknown file type' on compilation
@ 1994-11-02 21:31 Bennett, Chip (KTR) ~U
  1994-11-02 21:38 ` Roger Labbe
  0 siblings, 1 reply; 7+ messages in thread
From: Bennett, Chip (KTR) ~U @ 1994-11-02 21:31 UTC (permalink / raw)


Roger Labbe <dodger@GCR.COM> wrote:

> I just tried to install GNAT 1.83 on my dos system (MSDOS 6.21)
> following the installation instructions. When I try
> to compile a file using gcc I always get back an error message stating
>
> Unknown file type

Forgive me if I am stating the obvious, but since you didn't mention it, are
you using an extension of "adb" for procedures and bodies, and "ads" for
specs?

*****************************************************************
* Chip Bennett, GDE Systems Inc | BennettC@j64.stratcom.af.mil  *
* USSTRATCOM/J64213             | Voice (402)294-7360           *
* 901 SAC Blvd, Suite 2B24      | FAX   (402)294-7912           *
* Offutt AFB, NE 68113-6600     | Opinions expressed are my own *
*****************************************************************



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: DOS GNAT 1.83 returns 'unknown file type' on compilation
@ 1994-11-03 20:35 Bennett, Chip (KTR) ~U
  1994-11-03 20:01 ` Roger Labbe
  0 siblings, 1 reply; 7+ messages in thread
From: Bennett, Chip (KTR) ~U @ 1994-11-03 20:35 UTC (permalink / raw)


Roger Labbe <dodger@GCR.COM> wrote:

> Maybe a better question is: am I using the right compile command?
> The readme.dos file says to use
>
>    gcc -c hello.adb
>
> which doesn't work since gcc expects 'gcc filename [options]'.
> The commands 'gcc hello.adb' and 'gcc hello.adb -c' are causing the error.

Where did you get that the "-c" had to be after the file name?  We have gnat
for SunOS and DOS.  Both allow "gcc -c hello.adb".  Could this have
something to do with the problem?

I wonder if you are picking up an old version of gcc, from somewhere in your
path, that was not designed to handle gnat.

*****************************************************************
* Chip Bennett, GDE Systems Inc | BennettC@j64.stratcom.af.mil  *
* USSTRATCOM/J64213             | Voice (402)294-7360           *
* 901 SAC Blvd, Suite 2B24      | FAX   (402)294-7912           *
* Offutt AFB, NE 68113-6600     | Opinions expressed are my own *
*****************************************************************



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

end of thread, other threads:[~1994-11-04  8:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-02  2:06 DOS GNAT 1.83 returns 'unknown file type' on compilation Roger Labbe
1994-11-03 11:34 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1994-11-02 21:31 Bennett, Chip (KTR) ~U
1994-11-02 21:38 ` Roger Labbe
1994-11-03 20:35 Bennett, Chip (KTR) ~U
1994-11-03 20:01 ` Roger Labbe
1994-11-04  8:30   ` Samuel Tardieu

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