| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>Building the C++ STL API</title> |
| 7 |
<link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 |
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 |
<link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" /> |
| 10 |
<link rel="up" href="build_win.html" title="Chapter 5. Building Berkeley DB for Windows" /> |
| 11 |
<link rel="prev" href="win_build_cxx.html" title="Building the C++ API" /> |
| 12 |
<link rel="next" href="build_win_java.html" title="Building the Java API" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div xmlns="" class="navheader"> |
| 16 |
<div class="libver"> |
| 17 |
<p>Library Version 11.2.5.3</p> |
| 18 |
</div> |
| 19 |
<table width="100%" summary="Navigation header"> |
| 20 |
<tr> |
| 21 |
<th colspan="3" align="center">Building the C++ STL API</th> |
| 22 |
</tr> |
| 23 |
<tr> |
| 24 |
<td width="20%" align="left"><a accesskey="p" href="win_build_cxx.html">Prev</a> </td> |
| 25 |
<th width="60%" align="center">Chapter 5. |
| 26 |
Building Berkeley DB for Windows |
| 27 |
</th> |
| 28 |
<td width="20%" align="right"> <a accesskey="n" href="build_win_java.html">Next</a></td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
<hr /> |
| 32 |
</div> |
| 33 |
<div class="sect1" lang="en" xml:lang="en"> |
| 34 |
<div class="titlepage"> |
| 35 |
<div> |
| 36 |
<div> |
| 37 |
<h2 class="title" style="clear: both"><a id="win_build_stl"></a>Building the C++ STL API</h2> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
<p> |
| 42 |
|
| 43 |
In the project list of the <code class="filename">Berkeley_DB.sln </code> |
| 44 |
solution, build the "db_stl" project and "db_stl_static" project to build STL API |
| 45 |
as a dynamic or static library respectively. And in your application, you should link this |
| 46 |
library file as well as the Berkeley DB library file to your application. The STL API library file is by default always put at the |
| 47 |
same location as the Berkeley DB library file. |
| 48 |
</p> |
| 49 |
<p> |
| 50 |
And you need to include the STL API header files in your application code. |
| 51 |
If you are using the Berkeley DB source tree, the header files are in <Berkeley DB Source Root >/stl directory; |
| 52 |
If you |
| 53 |
are using the pre-built installed version, these header files are in < Berkeley DB Installed Directory>/include, as well as the |
| 54 |
db.h and db_cxx.h header files. |
| 55 |
</p> |
| 56 |
</div> |
| 57 |
<div class="navfooter"> |
| 58 |
<hr /> |
| 59 |
<table width="100%" summary="Navigation footer"> |
| 60 |
<tr> |
| 61 |
<td width="40%" align="left"><a accesskey="p" href="win_build_cxx.html">Prev</a> </td> |
| 62 |
<td width="20%" align="center"> |
| 63 |
<a accesskey="u" href="build_win.html">Up</a> |
| 64 |
</td> |
| 65 |
<td width="40%" align="right"> <a accesskey="n" href="build_win_java.html">Next</a></td> |
| 66 |
</tr> |
| 67 |
<tr> |
| 68 |
<td width="40%" align="left" valign="top">Building the C++ API </td> |
| 69 |
<td width="20%" align="center"> |
| 70 |
<a accesskey="h" href="index.html">Home</a> |
| 71 |
</td> |
| 72 |
<td width="40%" align="right" valign="top"> Building the Java API</td> |
| 73 |
</tr> |
| 74 |
</table> |
| 75 |
</div> |
| 76 |
</body> |
| 77 |
</html> |