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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.13.242.134 with SMTP id b128mr19356818ywf.28.1457426109091; Tue, 08 Mar 2016 00:35:09 -0800 (PST) X-Received: by 10.182.153.2 with SMTP id vc2mr271641obb.11.1457426109054; Tue, 08 Mar 2016 00:35:09 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!y89no6197717qge.0!news-out.google.com!k1ni12319igd.0!nntp.google.com!hb3no12442861igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 8 Mar 2016 00:35:08 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:2ab8:224:1:d8d4:6fad:3062:a8a5; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 2a02:2ab8:224:1:d8d4:6fad:3062:a8a5 References: <2a8f2430-a60a-4f6f-be65-dc6c844cf091@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0d7bc2a3-e00d-4506-b12b-59016659100c@googlegroups.com> Subject: Re: Question about C++ files with GPRBUILD From: briot.emmanuel@gmail.com Injection-Date: Tue, 08 Mar 2016 08:35:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29703 Date: 2016-03-08T00:35:08-08:00 List-Id: > The default is all files in all Source_Dirs. Right, this is unfortunately needed for C and C++, since there is no clear = way to compute the closure for a main (you could be using extern declaratio= ns for all subprograms, without ever using #include for instance). So gprbu= ild will build all project sources (either found automatically via Source_D= irs, or explicitly via Source_Files), build a library with these, and final= ly link the main unit using that library.