Strange MFC / VC ++ linker error (std :: list <CRect> already defined)
I have a really strange error message that only occurs when the following line is added to the project:
std::list<CRect> myVar;
It is worth noting that this should not be std :: list, it can be std :: vector or any other STL container that I assume.
Here is the error message:
Error 1 error LNK2005: "public: __thiscall std :: list
:: list> (void) "(?? 0? $ List @VCRect @@ V? $ Distributor @VCRect @@@@@@ standard stand @@ QAE @XZ) already defined in SomeLowLevelLibrary.lib
The low-level library referenced by the error message has no idea about the project I am creating, it has only basic low-level functions and is not related to the high-level MFC graphical interfaces.
, :
std::list<CRect*> myVar;
.
, , , .
- - ? Microsoft Visual Studio 2008 SP1 Vista Enterprise.
: std:: list < > , , _Nextnode clear .
: std::vector , std:: list. , , . MFC . 1 , std:: list.
: , CRect, STL.