BUG: LNK2019 When Building For Pocket PC Emulation (260567)
The information in this article applies to:
- Microsoft eMbedded Visual C++, Version:4.0
This article was previously published under Q260567 SYMPTOMS
When building an application for Pocket PC emulation that uses the Windows CE operating system functions, errors similar to the following may be encountered:
<filename>.obj : error LNK2019: unresolved external symbol _CeDeleteDatabase referenced in function <function>
CAUSE
These operating system functions use the _stdcall calling convention, but the compiler is declaring them as _cdecl. This problem occurs with the Windows CE Platform SDK for Pocket PC because the functions are incorrectly declared in the Windbase.h file without a linkage type.
RESOLUTION
Use one of the following workarounds:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 8/19/2005 |
---|
Keywords: | kbbug kbpending KB260567 |
---|
|