From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,474f983404143522,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!50g2000hsm.googlegroups.com!not-for-mail From: rotinom Newsgroups: comp.lang.ada Subject: Compiling Ada from another directory Date: Wed, 12 Sep 2007 14:59:49 -0700 Organization: http://groups.google.com Message-ID: <1189634389.893905.5800@50g2000hsm.googlegroups.com> NNTP-Posting-Host: 130.210.244.193 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1189634390 3503 127.0.0.1 (12 Sep 2007 21:59:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Sep 2007 21:59:50 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 50g2000hsm.googlegroups.com; posting-host=130.210.244.193; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1923 Date: 2007-09-12T14:59:49-07:00 List-Id: 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!