PRB: Preprocessor Flag Required to Compile/Link to Platform-Dependent Functions from the Visual C++ IDE (244316)
The information in this article applies to:
- Microsoft Windows CE Platform Builder 2.11
- Microsoft Windows CE Platform Builder 2.12
This article was previously published under Q244316 SYMPTOMS
Program or device driver source code that contains certain platform-dependent Windows CE function calls, such as KernelIoControl(), will not build from within the Microsoft Visual C++ Integrated Development Environment (IDE).
Build errors, such as "C2065: undeclared identifier", occur.
CAUSE
The header file definitions required for these function calls are not included by the preprocessor unless the WINCEOEM preprocessor definition is defined at the project level. The WINCEOEM definition causes additional header files to be included, which provide prototypes and macros required for these function calls.
RESOLUTION
To resolve this problem, add the WINCEOEM definition to your project build settings:
- On the Project menu, click Settings.
- Select the C/C++ tab in the Settings dialog box.
- Scroll to the end of the preprocessor definitions edit box.
- Add a comma and WINCEOEM to the end of the list.
- Rebuild your project.
Modification Type: | Minor | Last Reviewed: | 2/11/2004 |
---|
Keywords: | kbprb KB244316 |
---|
|