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.66.144.164 with SMTP id sn4mr4458837pab.9.1443635551201; Wed, 30 Sep 2015 10:52:31 -0700 (PDT) X-Received: by 10.182.148.40 with SMTP id tp8mr34239obb.37.1443635551165; Wed, 30 Sep 2015 10:52:31 -0700 (PDT) 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!kq10no14142572igb.0!news-out.google.com!z4ni7077ign.0!nntp.google.com!kq10no14142564igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 30 Sep 2015 10:52:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.48.108.5; posting-account=IcHmbgoAAABVfpbjrkJyy4Yb3hmce3tn NNTP-Posting-Host: 185.48.108.5 References: <9fe6d3f2-50e1-44a6-8ba0-2987d3792dd0@googlegroups.com> <5ba84353-987c-45b9-b5b5-cd7401074fe7@googlegroups.com> <8d12b995-a6e6-4ab7-ac04-33c611c2bdd0@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7f37d244-b83c-40c5-acc0-20060b67421d@googlegroups.com> Subject: Re: Upgrade to gnat 2015 now project not linking From: Lucas Redding Injection-Date: Wed, 30 Sep 2015 17:52:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27878 Date: 2015-09-30T10:52:30-07:00 List-Id: On Wednesday, September 30, 2015 at 6:20:39 PM UTC+1, Lucas Redding wrote: > On Wednesday, September 30, 2015 at 6:07:34 PM UTC+1, Lucas Redding wrote: > > On Wednesday, September 30, 2015 at 9:51:03 AM UTC+1, Georg Bauhaus wrote: > > > On 30.09.15 09:26, Lucas Redding wrote: > > > > I also suspect that I have a flag saying "don't link" but I can't for the life of me find it. > > > > > > For a start, -c might do. > > > > Thanks George, > > > > It turns out that its the -M option in the linking switches. > > > > 2013 -M produces both the map file and the executable. > > 2015 -M only produces the map file, and not the executable. > > > > Conclusion: If you want a map file to go with an executable you need a separate build for each (Map and exe). > > > > I have come to conclusion on this through trial and error. It may be buried somewhere in the documentation, but I certainly have been unable to find it. > > > > Nonetheless after plenty of headaches and heartaches, all systems are now go. > > > > Any further offers of elaboration (not the Ada kind) on this issue are very welcome. > > > > Thanks to all who answered. > > > > Much appreciated > > > > Lucas > > Hold fire! > > I was too quick to come to conclusion. -M does not generate a map file. > > I need to look into how to generate a map file in 2015. > > I'll be back. > > Cheers > > Lucas Ok. It looks like gprbuild is being used even though you specify gnatmake in the build settings target and -M is incompatible with GPRBUILD. I changed my build\settings\target for "build main" to gprbuild and I added the switch --create-map-file and viola, I now have both a map file and an executable. Final Conclusion: Use gprbuild and make sure you do not use -M in the linker switches. Instead use --create-map-file switch in the build\settings\target for "build main" command line. Thanks again All the best Lucas