* Question on GNAT-GPS
@ 2008-11-28 21:41 R
2008-11-28 23:44 ` Georg Bauhaus
2008-12-01 4:48 ` anon
0 siblings, 2 replies; 3+ messages in thread
From: R @ 2008-11-28 21:41 UTC (permalink / raw)
Hi all,
I installed the GPS suite on my system, started a compile of a (simple) file
and got results. The file has *.o extensions. How can I transform these
files to executables?
Grettings
Robert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question on GNAT-GPS
2008-11-28 21:41 Question on GNAT-GPS R
@ 2008-11-28 23:44 ` Georg Bauhaus
2008-12-01 4:48 ` anon
1 sibling, 0 replies; 3+ messages in thread
From: Georg Bauhaus @ 2008-11-28 23:44 UTC (permalink / raw)
R wrote:
> Hi all,
>
> I installed the GPS suite on my system, started a compile of a (simple) file
> and got results. The file has *.o extensions. How can I transform these
> files to executables?
In case the file that you compiled is a main unit
(and if you want to rely on the GPS mechanisms to build
executables), tell GPS that this unit is a main file:
Build -> Project Properties -> Tab Main files.
(GNAT by default uses a one file <-> one unit correspondence.)
Behind the scene, compiling, binding and linking an Ada main
unit can be triggered by running
$ gnatmake your_main_unit.adb
(This would also create your_main_unit.o, among other files.)
The Getting Started chapter in Help -> GNAT -> GNAT User's Guide
is highly recommended reading, even if you intend to work within
the IDE.
HTH
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question on GNAT-GPS
2008-11-28 21:41 Question on GNAT-GPS R
2008-11-28 23:44 ` Georg Bauhaus
@ 2008-12-01 4:48 ` anon
1 sibling, 0 replies; 3+ messages in thread
From: anon @ 2008-12-01 4:48 UTC (permalink / raw)
The best way to leaern the way GNAT works is to
gnat compile <file>.adb
gnat bind <file>.ali
gnat link <file>.ali <extra non-ada files>.o
In <ggpnr4$3h9$1@newsreader2.netcologne.de>, R <rfr-mailbox@gmx.de> writes:
>Hi all,
>
>I installed the GPS suite on my system, started a compile of a (simple) file
>and got results. The file has *.o extensions. How can I transform these
>files to executables?
>
>Grettings
>
>Robert
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-01 4:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-28 21:41 Question on GNAT-GPS R
2008-11-28 23:44 ` Georg Bauhaus
2008-12-01 4:48 ` anon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox