Re: Linker Error when using std::map

Tech-Archive recommends: Fix windows errors by optimizing your registry



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 *>,struct
std::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?


.



Relevant Pages

  • HookInterrupt error..
    ... I am new to wince. ... I need to program the DMA and set up an ISR for it to signal the ... HookInterrupt call to set up my ISR i get a linker error of ... Like unresolved external symbol _OEMNMIHandler ...
    (microsoft.public.windowsce.embedded.vc)
  • Visual Parse++ on eVC++
    ... Have anybody used Sandstone's visual parse on an eVC++ platform? ... .dfa.c and .llr.c file, I am getting a linker error saying, ... in I could not locate the corresponding .LIB file, hence it is giving me the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: How do I call WTSOpenServer in VC++?
    ... apologies. ... no point in converting from ANSI at runtime. ... But your linker error will only be resolved when you add WtsApi32.lib to ... The Requirements section clearly shows the header file and import library ...
    (microsoft.public.dotnet.languages.vc)