Re: Linker Error when using std::map
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 29 Aug 2006 10:28:10 -0700
Searching the archived messages from microsoft.public.windowsce.* via
GoogleGroups you'll find:
http://groups.google.com/group/microsoft.public.windowsce.embedded.vc/browse_frm/thread/dce0c22a3711cd86/bf6e6aeda798c34a?hl=en&lr=&ie=UTF-8&rnum=2&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26q%3Dstd%253A%253Amap%26meta%3Dgroup%253Dmicrosoft.public.windowsce.*#bf6e6aeda798c34a
Paul T.
"MechJayTi" <MechJayTi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:78350A96-8BD8-4480-BD2A-DE58A6F7FBF1@xxxxxxxxxxxxxxxx
Hi,
apologies in advance for my bad english...
I'm using eVC++ 4 for developing an WinCE 5.0-Application with the
"PicoMod"-Core. In this Application, I want to use std::map like this:
typedef map<const char*, someobject*, comp_func> mymap;
The Problem is, when I try to instantiate a variable of type mymap, I get
following linker error:
ChildView.obj : error LNK2019: unresolved external symbol "public: __cdecl
std::_Lockit::_Lockit(void)" (??0_Lockit@std@@QAA@XZ) referenced in
function
"public: __cdecl std::_Tree<char const *,struct std::pair<char const *
const,int *>,struct std::map<char const *,int *,struct ltstr,class
std::allocator<int *> >::_Kfn,struct ltstr,class std::allocator<int *>
::~_Tree<char const *,struct std::pair<char const * const,int *>,structstd::map<char const *,int *,struct ltstr,class std::allocator<int *>
::_Kfn,struct ltstr,class std::allocator<int *> >(void)"(??1?$_Tree@PBDU?$pair@QBDPAH@std@@U_Kfn@?$map@PBDPAHUltstr@@V?$allocator@PAH@std@@@2@Ultstr@@V?$allocator@PAH@2@@std@@QAA@XZ)
A second error tells me the same for _Lockit::~_Lockit. By googling, I
found
out this might be a multi-/single-threading issue, but the proposed
solution
for that is changing the run-time library, which is not possible because
the
only available choice is the "CE Runtime *".
To ensure the problem was not constructed in some other class of mine, I
created a new eVC-Project, which immediately had the same error.
Anyone got a clue what the problem might be?
.
- Prev by Date: Re: Background application hangs when pocket pc is in standby.
- Next by Date: Re: How to implement thumbnail view of files in evc4.0
- Previous by thread: Brightness & contrast
- Next by thread: ActiveX Control method access
- Index(es):
Relevant Pages
|