-I:Berkeley DB: Building for Windows platforms[P4

Building for Windows platforms



JThe build_win32 directory contains project files for both MSVC4.X and 5.0:

@IE:
DB_VC4.mdpVisual C++ 4.0 project file
DB_VC4.makMakefile exported by Visual C++ 4.0.
Berkeley_DB.dswVisual C++ 5.0 project file
*.dspVisual C++ 5.0 subprojects


KIn MSVC5.0, open the file Berkeley_DB.dsw The 5.0 project files areFfully developed, allowing you to build both DLL and static versions ofGlibdb, the test harness and the command-line utilities. To ensure thatNcorrect versions of include files are used, select the menu item Tools/OptionsHunder tab Directories, Platform Win32 and select Include files. Put theJbuild_win32 subdirectory on the list followed by the include subdirectory,and select OK.+If you want to build absolutely everything,3select the db_buildall subproject and build.

GWhen building your application, you should normally use compile optionsN"debug multithreaded dll" and link against build_win32/Debug/libdb.lib.FIf you want to link against a static (non-DLL) version of the library,>use the "debug multithreaded" compile options and link against$build_win32/Debug/libdbs.lib.

FIn MSVC4.X, first move your distribution directory to \db (so that theBproject file is \db\build_win32\DB_VC4.mdp for some drive letter).FThen open the file DB_VC4.mdp. The 4.X project files currentlyAallow you to build only the DLL version of libdb. To ensure thatNcorrect versions of include files are used, select the menu item Tools/OptionsHunder tab Directories, Platform Win32 and select Include files. Put theL/db/build_win32 directory on the list followed by the /db/include directory,and select OK.

,C++ support is built automatically on Win32.

(Java support is not built automatically.ASee Configuring and Building the Java APIfor more information.ÿÿ