There are many possible target CPU architectures for a Windows Mobile application. This section outlines the process required to add a new target architecture to the project files supplied with Berkeley DB.
The Visual Studio 2005 project files will by default build for Pocket PC 2003 and Smartphone 2003, and Windows Mobile 6.5.3 Professional. If you want to build for other platforms such as Windows Mobile 6.0, 6.1, or 6.5, you need to follow the steps provided in this section.
Different target architectures are available in different Platform SDK or DTK downloads from Microsoft. The appropriate SDK must be installed for your mobile architecture before you can build for that platform. You can find the downloads at the Microsoft Developer Center page.
- Choose File -> Open Workspace.... Navigate to the
build_wince
directory, selectBerkeley_DB
and click Open. - From the
Solution explorer
window, right-click theSolution Berkeley_DB
and selectConfiguration manager...
- In the
Active solution platform:
drop down box selectNew...
- From the
Type or select the new platform
drop-down box, select a configuration from the ones available and clickOK. (Copy Setting From Pocket PC 2003 (ARMV4))
- Click
Close
from theConfiguration Manager
dialog box. - The target platform drop-down now contains the platform just added.
- Build as per the instructions given at the beginning of this chapter.
build error
error LNK2019: unresolved external symbol localtime_s referenced in function localtimeOffset date.obj
trouble shooting
open date.c in db_sql project
modify #define HAVE_LOCALTIME_S 1 to #define HAVE_LOCALTIME_S 0
Reference:
http://docs.oracle.com/cd/E17076_02/html/installation/index.html
沒有留言:
張貼留言