comp.lang.ada
 help / color / mirror / Atom feed
* Gnat bind : how to ?
@ 2009-01-21 10:58 dg.recrutement31
  2009-01-21 18:02 ` Dirk Heinrichs
  0 siblings, 1 reply; 3+ messages in thread
From: dg.recrutement31 @ 2009-01-21 10:58 UTC (permalink / raw)


Hi all,

I would like to store the files by generated gnatbind (b~###.adb,
b~###.o, ...) and indirecty by gnatmake also in a different directory
than the current working one.

I'm searching an equivalent to '-D' of gnat compile.

Is there someone knowing how to do ?
Else, what do you use to do as a workaround ?

Thanks
Didier



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

* Re: Gnat bind : how to ?
  2009-01-21 10:58 Gnat bind : how to ? dg.recrutement31
@ 2009-01-21 18:02 ` Dirk Heinrichs
  2009-01-22 13:42   ` dg.recrutement31
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk Heinrichs @ 2009-01-21 18:02 UTC (permalink / raw)


dg.recrutement31@gmail.com wrote:

> Hi all,
> 
> I would like to store the files by generated gnatbind (b~###.adb,
> b~###.o, ...) and indirecty by gnatmake also in a different directory
> than the current working one.

Just pass it the directory where you placed your object (and .ali) files, 
like:

gcc -c test_prog.adb -o /some/dir/obj/test_prog.o
gnatbind -shared /some/dir/obj/test_prog
gnatlink /some/dir/obj/test_prog -o /some/dir/bin/test_prog

HTH...

	Dirk




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

* Re: Gnat bind : how to ?
  2009-01-21 18:02 ` Dirk Heinrichs
@ 2009-01-22 13:42   ` dg.recrutement31
  0 siblings, 0 replies; 3+ messages in thread
From: dg.recrutement31 @ 2009-01-22 13:42 UTC (permalink / raw)


On 21 jan, 19:02, Dirk Heinrichs <dirk.heinri...@online.de> wrote:
> dg.recrutemen...@gmail.com wrote:
> > Hi all,
>
> > I would like to store the files by generated gnatbind (b~###.adb,
> > b~###.o, ...) and indirecty by gnatmake also in a different directory
> > than the current working one.
>
> Just pass it the directory where you placed your object (and .ali) files,
> like:
>
> gcc -c test_prog.adb -o /some/dir/obj/test_prog.o
> gnatbind -shared /some/dir/obj/test_prog
> gnatlink /some/dir/obj/test_prog -o /some/dir/bin/test_prog
>
> HTH...
>
>         Dirk

Fine.
I would have guessed it.
Thanks a lot, Dirk.



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

end of thread, other threads:[~2009-01-22 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-21 10:58 Gnat bind : how to ? dg.recrutement31
2009-01-21 18:02 ` Dirk Heinrichs
2009-01-22 13:42   ` dg.recrutement31

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