comp.lang.ada
 help / color / mirror / Atom feed
* Easy Beginner Question
@ 1997-11-18  0:00 Nathan Dietsch
  1997-11-18  0:00 ` Tom Moran
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Nathan Dietsch @ 1997-11-18  0:00 UTC (permalink / raw)



Hello,

I just got the Ada compiler for Linux yesterday. I have a very simple
wuestion, please don't flame. I have looked through the Web to find info
for this question. What is the comand to compile and Ada program.

I have tried the WebAda compile but I want to do it on my own system at
my own time, ie not connected to the net.

Sorry to post such a simple question, but any help would be appreciated.

Regards

Nathan Dietsch

--
=======================================================
Nathan "Volsung" Dietsch
Charles Sturt University

ndiets01@postoffice.csu.edu.au
http://golum.riv.csu.edu.au/~ndiets01

02 6933 3605
=======================================================
- Member of the Alternative Operating System
  Users Group.
  http://golum.riv.csu.edu.au/~ndiets01/aos/

- Member of the Microsoft Boycott Campaign
  http://www.abctec.com/~msbc/

- Editor in Chief of Knights of the System Table
  http://www.linuxmall.com/knights/
=======================================================






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

* Re: Easy Beginner Question
  1997-11-18  0:00 Nathan Dietsch
  1997-11-18  0:00 ` Tom Moran
@ 1997-11-18  0:00 ` Robert Dewar
  1997-11-19  0:00 ` Richard Johnson
  2 siblings, 0 replies; 6+ messages in thread
From: Robert Dewar @ 1997-11-18  0:00 UTC (permalink / raw)



Nathan says

<<I just got the Ada compiler for Linux yesterday. I have a very simple
wuestion, please don't flame. I have looked through the Web to find info
for this question. What is the comand to compile and Ada program.

I have tried the WebAda compile but I want to do it on my own system at
my own time, ie not connected to the net.

Sorry to post such a simple question, but any help would be appreciated.
>>

You did not say what compiler you have, but it is reasonable to guess it
is GNAT. This compiler comes with complete documentation, and you should
read the GNAT users guide to answer your question. The first chapter of
this guide is a very simple introduction which leads you through the
answers to your question step by step.

The trouble with trying to replace manuals with random information obtained
on newsgroups etc is precisely that the information is random, i.e. you
get odd disconnected answers which do not give you the full picture of
the capabilities of the system. I know people get used to software like
Powerpoint which is designed to be used without reading documentation,
at least at a simple level, but for a compiler, you really want to learn
the full range of capabilities, and also understand the structure of
the various tools, and reading the documentation is really a requirement
for effective use of the system.

Robert Dewar
Ada Core Technologies





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

* Re: Easy Beginner Question
  1997-11-18  0:00 Nathan Dietsch
@ 1997-11-18  0:00 ` Tom Moran
  1997-11-18  0:00 ` Robert Dewar
  1997-11-19  0:00 ` Richard Johnson
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Moran @ 1997-11-18  0:00 UTC (permalink / raw)



>What is the comand to compile and Ada program.
There is no such command.  Some OSes and IDEs have no command lines at
all.  The particular way to do a compile on your Linux system depends
on your particular compiler, so you'll have to find the answer in its
docs.  If you are using Gnat, you might try "gnatmake abc" to compile
a program in file abc.adb, but of course there might well be compiler
options (-gnato to catch, rather than ignore, overflows, comes to
mind) that you will want to use.  And of course you may need first to
set some paths to say where the compiler, its libraries, and your
files, are.




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

* Re: Easy Beginner Question
@ 1997-11-19  0:00 Marin David Condic, 561.796.8997, M/S 731-96
       [not found] ` <651gq6$lbk$1@srv1.drenet.dnd.ca>
  0 siblings, 1 reply; 6+ messages in thread
From: Marin David Condic, 561.796.8997, M/S 731-96 @ 1997-11-19  0:00 UTC (permalink / raw)



Nathan Dietsch <ndiets01@POSTOFFICE.CSU.EDU.AU> writes:
>I just got the Ada compiler for Linux yesterday. I have a very simple
>wuestion, please don't flame. I have looked through the Web to find info
>for this question. What is the comand to compile and Ada program.
>
    One of the things that will help when posting questions about
    compiler specifics is to indicate which compiler you are using,
    the version number, host machine, OS, etc., since things can vary
    considerably from one implementation to another. There is not just
    one Ada compiler in the world and all compilers have some
    variances from each other in how they are invoked, user
    specifiable options and so on.

    Working on the possibly unwarranted assumption that you are using
    the GNAT Ada compiler, the customary way of compiling a program is
    with the command:

    gnatmake program_name

    For example, if you have a main program in a file called
    "main.adb" the way to compile it is:

    gnatmake main

    If the compiler you are using is GNAT, you should be able to find
    the GNAT Users Guide with the distribution or downloadable from
    the same place you got the compiler. It's worth the effort to go
    through this guide because there are lots of useful switches you
    will find in there.

    MDC

Marin David Condic, Senior Computer Engineer     Voice:     561.796.8997
Pratt & Whitney GESP, M/S 731-96, P.O.B. 109600  Fax:       561.796.4669
West Palm Beach, FL, 33410-9600                  Internet:  CONDICMA@PWFL.COM
===============================================================================
    "Some people say a front-engine car handles best. Some people say
    a rear-engine car handles best. I say a rented car handles best."
        --  P. J. O'Rourke
===============================================================================




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

* Re: Easy Beginner Question
  1997-11-18  0:00 Nathan Dietsch
  1997-11-18  0:00 ` Tom Moran
  1997-11-18  0:00 ` Robert Dewar
@ 1997-11-19  0:00 ` Richard Johnson
  2 siblings, 0 replies; 6+ messages in thread
From: Richard Johnson @ 1997-11-19  0:00 UTC (permalink / raw)



In article <3471626E.3F426877@postoffice.csu.edu.au>, 
ndiets01@postoffice.csu.edu.au says...
 >
 >Hello,
 >
 >I just got the Ada compiler for Linux yesterday. I have a very simple
 >wuestion, please don't flame. I have looked through the Web to find info
 >for this question. What is the comand to compile and Ada program.
 >
 >I have tried the WebAda compile but I want to do it on my own system at
 >my own time, ie not connected to the net.
 >
 >Sorry to post such a simple question, but any help would be appreciated.
 >
 >Regards
 >
 >Nathan Dietsch
 >
 >--
 >=======================================================
 >Nathan "Volsung" Dietsch
 >Charles Sturt University
 >
 >ndiets01@postoffice.csu.edu.au
 >http://golum.riv.csu.edu.au/~ndiets01
 >
 >02 6933 3605
 >=======================================================
 >- Member of the Alternative Operating System
 >  Users Group.
 >  http://golum.riv.csu.edu.au/~ndiets01/aos/
 >
 >- Member of the Microsoft Boycott Campaign
 >  http://www.abctec.com/~msbc/
 >
 >- Editor in Chief of Knights of the System Table
 >  http://www.linuxmall.com/knights/
 >=======================================================
 >
 >

If you are using gnat 3.x,
try "gcc -c myfile.adb" to compile to an object file myfile.o
or "gnatmake myfile" (if it is a top level procedure for an exectuteable, myfile.exe)
or "gcc -c -gnatbl myfile.adb > myfile.lsb" for a listing file saved in myfile.lsb

Cheers
Rick Johnson





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

* Re: Easy Beginner Question
       [not found] ` <651gq6$lbk$1@srv1.drenet.dnd.ca>
@ 1997-11-20  0:00   ` Stanley R. Allen
  0 siblings, 0 replies; 6+ messages in thread
From: Stanley R. Allen @ 1997-11-20  0:00 UTC (permalink / raw)



Richard Johnson wrote:
> 
> 
> Does
> anyone know of a nice mature Ada95 compiler that has a nice Interactive
> Development Environment that will run on Windows 95 or Windows NT?
> 

Rational Corp. just announced (2 weeks ago) that its Apex Ada95
environment is available on Windows NT.  It's probably more
expensive than Aonix's product.  I've never used the NT version but
the versions I've used (on Unix) are quite good.  I don't know if
the Apex/NT product has any GUI toolkit like the Aonix product.

Here's the press release:

http://www.rational.com/world/press/releases/data/apexada95.html

-- 
Stanley Allen
mailto:s_allen@hso.link.com




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

end of thread, other threads:[~1997-11-20  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-19  0:00 Easy Beginner Question Marin David Condic, 561.796.8997, M/S 731-96
     [not found] ` <651gq6$lbk$1@srv1.drenet.dnd.ca>
1997-11-20  0:00   ` Stanley R. Allen
  -- strict thread matches above, loose matches on Subject: below --
1997-11-18  0:00 Nathan Dietsch
1997-11-18  0:00 ` Tom Moran
1997-11-18  0:00 ` Robert Dewar
1997-11-19  0:00 ` Richard Johnson

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