|
Boost Users : |
From: John Maddock (john_at_[hidden])
Date: 2007-05-07 04:31:18
Martin Zeng wrote:
> Hi guys,
> I have a static library in which I have included the boost regex
> header. This static library compiles fine with no errors.
>
> But then I want to use this static library in an MFC application I
> made.
>
>
> I keep getting the following linking error:
>
> error LNK2005: "public: static unsigned int __cdecl
> std::char_traits<unsigned short>::length(unsigned short const *)"
> (?length@?$char_traits_at_G@std@@SAIPBG_at_Z) already defined in
> msvcprtd.lib(MSVCP71D.dll)
>
>
>
> What is the problem and how can I solve it?
Please see
https://sourceforge.net/tracker/index.php?func=detail&aid=1470041&group_id=7586&atid=107586
HTH, John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net