Boost logo

Boost-Build :

Subject: Re: [Boost-build] PDB support, pt. 2
From: Michael Weber (michael.weber_at_[hidden])
Date: 2009-08-04 14:09:13


On Mon, Aug 3, 2009 at 9:23 AM, Michel Krämer <michel_at_[hidden]> wrote:
>
>
> Michael Weber-18 wrote:
> >
> > I think most msvc users would agree that debug-store=database is a
> > good default - it is the option we've used on many large projects for
> > many years now. Also, the Visual Studio IDE uses this option by
> > default for new projects.
> >
>
> That's true, but I'm having trouble using pre-compiled headers now. I just
> checked out the latest boost build version from the SVN and tried to compile
> my project. Pre-compiled headers are on and debug-store is set to
> "database", but I get the compiler errors C2858 and C2859 which tell me that
> the individual pdb file is not compatible to the one created for the
> pre-compiled headers which is vc90.pdb actually:
>
> abc.cpp(12) : error C2858:
>  command-line option
> (/Fdj:\projects\...\bin\msvc-9.0\debug\debug-store-databa
> se\threading-multi\user-interface-gui\abc.pdb)' inconsistent with
> precompiled header, which used  '/Fdj:\projects\...\vc90.pdb'
> abc.cpp(12) : error C2859:
>  j:\projects\...\bin\msvc-
> 9.0\debug\debug-store-database\threading-multi\user-interface-gui\abc.pdb is
> not the pdb file that was used when this precompiled header was created,
> recreate the precompiled header.
>
> If I remove the debug-store setting I do not get the error message anymore,
> but I'm not sure what consequences that has.
>
> So, I'd recommend not setting debug-store to "database" by default until it
> can be used in conjuction with pre-compiled headers.
>
> Please tell me if there is anything I'm missing.
>
> Regards,
> Michel

Is your build trying to use precompiled headers that you generated
before updating boost? If so, they would have references to the
vc90.pdb files. After the PDB update, you'd need to execute a clean
rebuild (deleting the pch files manually if boost's clean does not
remove them), to regenerate PCH files with references to the new PDB
files.

I am not using precompiled headers on my current project and did not
test them with the PDB change I suggested. But they should word -- I'm
certain I've used this PDB scheme with precompiled headers using IDE
project files on a previous project.

regards
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