|
![]() ![]() ![]() |
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.
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 include file locations you may need for the Berkeley DB XML distribution. The include files are copied during the build. If you have a successful build, or you have the binary distribution, only the first location is necessary. Version numbers may need to be modified to match your distribution:
dbxml-2.2.13/include dbxml-2.2.13/dbxml/include dbxml-2.2.13/db-4.3.28/build_win32 dbxml-2.2.13/xerces-c-src/src
The Berkeley DB XML build places libraries against which applications must link in dbxml-2.2.13/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 Build | Debug Build |
---|---|
libdbxml22.lib | libdbxml22d.lib |
libdb43.lib | libdb43d.lib |
xerces-c_2.lib | xerces-c_2D.lib |
The Berkeley DB XML build process places DLLs and executable files in dbxml-2.2.13/bin) for the Release build, and dbxml-2.2.13/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 Build | Debug Build |
---|---|
libdbxml22.dll | libdbxml22d.dll |
libdb43.dll | libdb43d.dll |
xerces-c_2.dll | xerces-c_2D.dll |
libxquery12.dll | libxquery12d.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 your application's project file.
![]() ![]() ![]() |
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.