Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to have linker find PDB files?
From: Michael Weber (michael.weber_at_[hidden])
Date: 2009-06-08 21:38:16


On Mon, Jun 8, 2009 at 3:39 PM, Nathan Paul<nathanjpaul_at_[hidden]> wrote:
> My PDB files are in the same directory as the lib file.

What are your pdb files named -- vc90.pdb or libmylib.pdb? If you are
generating the default-named PDB file for your library, vc90.pdb, then
when the linker finds a different vc90.pdb first (the one generated
for your target executable's source), it may stop looking for others
when linking your exe.

I do know that if you use <debug-store>database (i.e., /Zi) for all
components (your library and your executable), together with the
changes document in
http://lists.boost.org/boost-build/2009/04/21691.php, so that you
generate PDB files named uniquely for each build artifact, then msvc
with boost.build successfully finds all required PDB files during link
and generates a useful pdb for my final target binary. I use this
configuration every day.

Michael


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