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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,474f983404143522 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Compiling Ada from another directory References: <1189634389.893905.5800@50g2000hsm.googlegroups.com> In-Reply-To: <1189634389.893905.5800@50g2000hsm.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <15%Fi.99306$Fc.83349@attbi_s21> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1189641661 12.201.97.213 (Thu, 13 Sep 2007 00:01:01 GMT) NNTP-Posting-Date: Thu, 13 Sep 2007 00:01:01 GMT Organization: AT&T ASP.att.net Date: Thu, 13 Sep 2007 00:01:01 GMT Xref: g2news2.google.com comp.lang.ada:1932 Date: 2007-09-13T00:01:01+00:00 List-Id: rotinom wrote: > 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. You should understand that this is not an Ada question. This is a compiler question. Different compilers will handle this differently. You really should specify your compiler, compiler version, and host and target platforms. From your examples, I'm going to guess that you're using some version of GNAT, self targeted on some version of Windows. Project files provide a simple way to specify that GNAT's compilation artifacts (.o and .ali) go in a different directory. A careful reading of the secret documentation (probably the GNAT Users Guide) will tell you about switches such as -I that give you further control over where it will look for things. -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail 01