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 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail From: rotinom Newsgroups: comp.lang.ada Subject: Re: Compiling Ada from another directory Date: Wed, 12 Sep 2007 16:17:25 -0700 Organization: http://groups.google.com Message-ID: <1189639045.213408.243820@w3g2000hsg.googlegroups.com> References: <1189634389.893905.5800@50g2000hsm.googlegroups.com> <1189638096.12652.56.camel@kartoffel> NNTP-Posting-Host: 130.210.244.193 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1189639045 18458 127.0.0.1 (12 Sep 2007 23:17:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Sep 2007 23:17:25 +0000 (UTC) In-Reply-To: <1189638096.12652.56.camel@kartoffel> 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: w3g2000hsg.googlegroups.com; posting-host=130.210.244.193; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1929 Date: 2007-09-12T16:17:25-07:00 List-Id: > (Maybe this is an effect of assuming that you need to use > similar build tools ;-) Quite possibly :) We operate in a mixed source environment, and we've invested in using SCons (http://www.scons.org) as our primary build tool. SCons is great with it's support with a variety of languages, however Ada was never picked up (until now). I'll try to not bore you with details, but it takes much (if not all) of the "bind" functionality of ada, and makes it available for other languages. We're heavily invested into it, and it's helped us out tremendously with our large project. (It's really nice to touch one of our heavily depended files, and see a near entire rebuild of our source tree, because everything is now out of date). I've gotten gnatlink to spit out the command line that it's trying to use, by specifying the -v option. However, I'm hitting a wall with the bind file. The "bad" lines are: 1: pragma Source_File_Name (ada_main, Spec_File_Name => "_build/ b~Bottles.ads"); 2: pragma Source_File_Name (ada_main, Body_File_Name => "_build/ b~Bottles.adb"); When I try to compile it, I get: gcc -c -gnatA -gnatWb -gnatiw -mtune=pentiumpro -gnatws _build/ b~Bottles.adb b~Bottles.adb:1:61: directory separator character not allowed b~Bottles.adb:2:61: directory separator character not allowed TIA