|
Boost : |
From: Carl Daniel (cpdaniel_at_[hidden])
Date: 2003-09-18 09:49:47
Rodolfo Lima wrote:
> I'm using lambda in my project and I'm getting the following linker
> errors:
>
> stdafx.obj : error LNK2005: "class lambda_functor<struct
> boost::lambda::placeholder<1> >::boost::lambda_functor<struct
> boost::lambda::placeholder<1> > const & const
> boost::lambda::`anonymous namespace'::_1"
>
(?_1@?A0x2ef08265_at_lambda@boost@@3ABV?$lambda_functor_at_U?$placeholder@$00_at_lamb
> da_at_boost@@@23_at_B) already defined in Alloc.obj
Unless I'm mistaken, this occurs as a result of putting boost (lambda)
header files in the precompiled header. Try building your code without
PCH,or moving boost::lambda out of the PCH and see if that helps.
-cd
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk