Subject: Re: [Boost-build] How to have linker find PDB files?
From: Michael Weber (michael.weber_at_[hidden])
Date: 2009-06-09 13:00:34
Certainly. Attached is a diff of my current revision relative to the
original Boost 1.36.0 revision.
Since my original post, I made some additional changes:
1. "import xpidl" - you'll probably want to remove that. I added an
xpidl.jam tool to my system, for compiling IDL files for Mozilla's XPCOM
interfaces. I've attached my xpidl.jam too, for your amusement.
2. In order to have the stage rule copy the PDB files, I added them as
artifacts of the archive and link rules. Therefore, I also added a call to
touch the PDB files and generate dummy empty files, for when <debug-store>
is set to "object" or <debug-symbols> is set to "off". This seems a bit
sloppy but I only actually use <debug-store>database, and I do not know how
to declare rules with build artifacts that are conditional on build
If there are better ways to implement these changes, I'd be happy to see
On Tue, Jun 9, 2009 at 5:38 AM, Ian Emmons <iemmons_at_[hidden]> wrote:
> Once you've integrated and validated the change, it seems to me that it
> would make sense to make /Zi (<debug-store>database) the default symbols
> On Jun 9, 2009, at 2:39 AM, Vladimir Prus wrote:
> On Tuesday 09 June 2009 Michael Weber wrote:
>> On Sun, Jun 7, 2009 at 9:07 AM, Nathan Paul <nathanjpaul_at_[hidden]>
>>>> LNK4099 is described at
>>>> http://msdn.microsoft.com/en-us/library/b7whw3f3.aspx. It's bad because
>>>> it means the object is linked as if there is no debug information. To make
>>>> this warning go away, the PDB files would have to be in the linker's search
>>>> path, but I don't know how to tell the linker that information.
>>> There is no search path for PDB files -- the reference to the PDB is
>>> in the LIB file itself. The linker will find libmylib.pdb if it is
>>> placed in the same directory as libmylib.lib.
>>> The reference from Alexey,
>>> http://lists.boost.org/boost-build/2009/04/21691.php, documents a
>>> change you can make to msvc.jam in order to make boost.build generate
>>> PDB files with the same name as the library, when using the Zi option
>>> (<debug-store>database), rather than the default vc90.pdb name.
>> I seem to have missed that post. Can you resend the changes in a diff
>> (diff -u, svn diff, whatever), so that I can integrate it with the current
>> SVN HEAD?
> Unsubscribe & other changes:
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk