Berkeley DB XML Reference Guide:
Building Berkeley DB XML on Windows systems

PrevRefNext

Using Berkeley DB XML on Windows

An application which uses Berkeley DB XML relies on five libraries: Berkeley DB XML, Berkeley DB, Pathan, XQuery, and Xerces C++. When compiling, some include files from these packages must be available, and the libraries must be included when linking the application.

When running the application, each of the DLLs must be available in a directory in the PATH. You can achieve this either by copying all of the DLLs into a directory that is already in your PATH, such as windows/system32, or by adding each of the directories containing one of the DLLs to your PATH variable. The default build of Berkeley DB XML places all library DLLs into a single directory to simplify this process.

Berkeley DB XML Include File Locations

A typical Berkeley DB XML application requires only include files from Berkeley DB XML and Berkeley DB. If an application uses DOM interfaces from the Xerces C++ library, it must include Xerces header files as well.

The following are the include file locations for the Berkeley DB XML distribution (version numbers may need to be modified to match your distribution):

dbxml-2.0.7/dbxml/include
dbxml-2.0.7/db-4.3.25/build_win32
dbxml-2.0.7/xerces-c-src_2_6_0/src

Berkeley DB XML Library File Names and Locations

The Berkeley DB XML build places libraries against which applications must link in dbxml-2.0.7/dbxml/lib. This directory holds both Release and Debug .lib files. An application that uses only Berkeley DB XML interfaces is only required to link with the Berkeley DB XML library. If an application uses Berkeley DB or Xerces C++ interfaces, it is necessary to link with those libraries as well.

The following are the important library file names for the Berkeley DB XML distribution (version numbers may need to be modified to match your distribution):

Release BuildDebug Build
libdbxml20.lib libdbxml20d.lib
libdb43.lib libdb43d.lib
xerces-c_2.lib xerces-c_2D.lib

Berkeley DB XML DLL Names and Locations

The Berkeley DB XML build process places DLLs and executable files in dbxml-2.0.7/dbxml/bin/Release) for the Release build, and dbxml-2.0.7/dbxml/bin/Debug) for the Debug build. Unlike header files and .lib files, all library DLLs must be available at run time in the application's PATH environment variable.

The following are the DLLs required for Berkeley DB XML applications (version numbers may need to be modified to match your distribution):

Release BuildDebug Build
libdbxml20.dll libdbxml20d.dll
libdb43.dll libdb43d.dll
xerces-c_2_6.dll xerces-c_2_6D.dll
libxquery10.dll libxquery10d.dll
Pathan.dll (VC6) PathanD.dll (VC6)
Pathan_7.1.dll (VC7) PathanD_7.1.dll (VC7)

A good way to ensure that your application uses the necessary header files and libraries is to use one of the Berkeley DB XML example projects (dbxml/build_win32/dbxml_example*) as a template for the application.


PrevRefNext

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.