Operating system: WinXP
VC Environment: VC6.0
Required files: Berkeley db installation file (Db-.msi) http://www.oracle.com/technology/software/products/berkeley-db/index.html
Steps:
1. Run Db-4.7.25.msi, install Berkeley DB
2. Build Berkeley DB
1〉 Open Project with VC6.0
(C:\Program Files\oracle\berkeley DB \db-4.7.25\build_windows)
2〉 Open the VC's Build drop-down menu, select Set Active configuration, and select build configuration, where Win32 release is selected.
3〉 Press F7 to compile
☆ generated file Libdb47.lib in release after compiling
VC Environment Configuration
1. Select Project->settings->c++, select the code generations,use run-timelibrary Select the Debug multithreaded DLL option.
2. Select Tools->options->directories
In the list of paths to include files, add:
C:\Program Files\oracle\berkeley DB \include
C:\Program Files\oracle\berkeley DB \db-4.7.25
In the path list of the library files, add:
C:\Program Files\oracle\berkeley DB \db-4.7.25\build_windows\release
3. Add Libdb47.lib to the object/modules of Project->settings->link's General tab.
Multiple lib files separated by spaces