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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Compiling Ada from another directory Reply-To: anon@anon.org (anon) References: <1189634389.893905.5800@50g2000hsm.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Thu, 13 Sep 2007 00:02:44 GMT NNTP-Posting-Host: 12.64.140.144 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1189641764 12.64.140.144 (Thu, 13 Sep 2007 00:02:44 GMT) NNTP-Posting-Date: Thu, 13 Sep 2007 00:02:44 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:1933 Date: 2007-09-13T00:02:44+00:00 List-Id: # # 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 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! >