comp.lang.ada
 help / color / mirror / Atom feed
From: corbin@cruzio.com (Corbin Dunn)
Subject: Re: gnat ada95 compiler..help
Date: 1997/03/02
Date: 1997-03-02T00:00:00+00:00	[thread overview]
Message-ID: <3318eafd.25461425@news.pr.erau.edu> (raw)
In-Reply-To: 5etvim$rr3@mtinsc05.worldnet.att.net


bill, 
are you using windows95 or 3.x?
I had to add this path in my autoexec to get gnat to compile anything:

rem gnat junk that i had to add
echo off
set PATH=C:\ADAGNAT\bin;%path%
SET PATH=C:\ADAGNAT\GW-GNAT;%PATH%;
set TMPDIR=C:\ADAGNAT\tmp
set GO32TMP=C:\ADAGNAT\tmp
set GO32=topline C:\ADAGNAT\drivers\vga.grd gw 640 gh 480
set DJGPP=C:\ADAGNAT\djgpp.env
set ADA_INCLUDE_PATH=C:\ADAGNAT\adainc
set ADA_OBJECTS_PATH=C:\ADAGNAT\lib\adalib
set GW-GNAT=C:\ADAGNAT\gw-gnat
rem end gnat junk

to syntax check:
gnat1 -gnatl yourfile.adb

you must use the extention .adb

to compile:
gcc -c yourfile.adb

to link:
gnatbl yourfile.ali

to run your program type (at the prompt):
yourfile

GOOD LUCK!






On Tue, 25 Feb 97 06:11:34 GMT, rawlins2@marshall.edu (bill) wrote:

>hi, 
>I am a relatively new ADA student as I am in my second semster of ADA 
>instruction however I have only used a commercial VMS based compiler to date 
>and I am having some trouble with basic usage of the gnat compiler I 
>downloaded tonight.  I can't seem to compile anything..so I must be doing 
>something incredibly stupid.. so if anyone can tell me either a. where a good 
>reference for gnat syntax is or b. what to type just to compile, link, and 
>execute a program like the basic "hello world" i would be very appreciative.
>
>Thank you in advance
>Bill Rawlinson
>
>   ___                ___            
>  (/__) .  /) /)     (/__)    http://webpages.marshall.edu/~rawlins2                          
>  /__) (__(__(___    /\    __          /) .     _    _              
> (                  (  \  (_/(_(_(_(__(__(_/\/_/_)__(_)_/\/______   
>

--
corbin@cruzio.com
--
"640K ought to be enough memory for anybody"
-Bill Gates, 1981




      parent reply	other threads:[~1997-03-02  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-25  0:00 gnat ada95 compiler..help bill
1997-02-26  0:00 ` Robert Dewar
1997-03-02  0:00 ` Corbin Dunn [this message]
replies disabled

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