From: Lucas Redding <lucas.redding@gmail.com>
Subject: Re: Upgrade to gnat 2015 now project not linking
Date: Wed, 30 Sep 2015 10:52:30 -0700 (PDT)
Date: 2015-09-30T10:52:30-07:00 [thread overview]
Message-ID: <7f37d244-b83c-40c5-acc0-20060b67421d@googlegroups.com> (raw)
In-Reply-To: <e1530e58-a01f-41f4-805b-067d31aec960@googlegroups.com>
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
next prev parent reply other threads:[~2015-09-30 17:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 12:27 Upgrade to gnat 2015 now project not linking Lucas Redding
2015-09-29 20:10 ` Shark8
2015-09-30 7:26 ` Lucas Redding
2015-09-30 8:51 ` Georg Bauhaus
2015-09-30 17:07 ` Lucas Redding
2015-09-30 17:20 ` Lucas Redding
2015-09-30 17:52 ` Lucas Redding [this message]
2015-09-30 19:15 ` Simon Wright
2015-10-01 6:26 ` Lucas Redding
2015-10-01 8:22 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox