From: anon@anon.org (anon)
Subject: Re: Compiling Ada from another directory
Date: Thu, 13 Sep 2007 00:02:44 GMT
Date: 2007-09-13T00:02:44+00:00 [thread overview]
Message-ID: <E6%Fi.534330$p47.124299@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: 1189634389.893905.5800@50g2000hsm.googlegroups.com
#
# The "bind" and "link" functions do not require command line options
#
gcc -c -o _build/Bottles.o src/Bottles.adb
gnatbind _build/Bottles.ali
gnatlink _build/Bottles.ali
# The simpler way or with users defined packages:
#
# object_directory => is the directory for *.ali and *.o and executable
# source_directory => is the directory with all user's Ada source files
# unit.adb => user main compilation_unit
cd object_directory
gnatmake ../source_directory/unit.adb
#
# for a compile list of command line options
#
# gnatmake -help
#
In <1189634389.893905.5800@50g2000hsm.googlegroups.com>, rotinom <rotinom@gmail.com> writes:
>Hey all. I'm working with a build tool that pretty much requires me
>to build from a single directory, and I'd like to place the objects in
>another directory. This has proven great with everything else, but
>when it comes to Ada, I'm hitting a brick wall.
>
>So my command lines so far are:
>
>
>
>gcc -c -o _build/Bottles.o src/Bottles.adb
>Bottles.adb:6:11: warning: file name does not match unit name, should
>be "bottles.adb"
>gnatbind -o _build/b~Bottles.adb _build/Bottles.ali
>gnatlink -o _build/Bottles.exe _build/Bottles.ali
>gnatlink: Failed to open binder output
>
>
>(Yes, _build/b~Bottles.adb/ads/ali all exist)
>
>It would seem that I'm missing a command line switch or something
>here. Any help would be greatly appreciated.
>
>Thanks!
>
next prev parent reply other threads:[~2007-09-13 0:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-12 21:59 Compiling Ada from another directory rotinom
2007-09-12 23:01 ` Georg Bauhaus
2007-09-12 23:17 ` rotinom
2007-09-13 0:01 ` Jeffrey R. Carter
2007-09-13 0:02 ` anon [this message]
2007-09-13 14:16 ` rotinom
2007-09-13 15:01 ` Markus E L
2007-09-17 19:08 ` rotinom
2007-09-18 21:21 ` Simon Wright
2007-09-13 22:22 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox