mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
50 lines
3.1 KiB
HTML
50 lines
3.1 KiB
HTML
<!--$Id: faq.so,v 10.20 2000/06/28 15:43:27 bostic Exp $-->
|
|
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
|
<!--All rights reserved.-->
|
|
<html>
|
|
<head>
|
|
<title>Berkeley DB Reference Guide: Windows FAQ</title>
|
|
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
|
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
|
</head>
|
|
<body bgcolor=white>
|
|
<a name="2"><!--meow--></a> <a name="3"><!--meow--></a>
|
|
<table><tr valign=top>
|
|
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for Windows systems</dl></h3></td>
|
|
<td width="1%"><a href="../../ref/build_win/notes.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/build_vxworks/intro.html"><img src="../../images/next.gif" alt="Next"></a>
|
|
</td></tr></table>
|
|
<p>
|
|
<h1 align=center>Windows FAQ</h1>
|
|
<p><ol>
|
|
<p><li><b>My Win* C/C++ application crashes in the Berkeley DB library when Berkeley DB calls
|
|
fprintf (or some other standard C library function).</b>
|
|
<p>You should be using the "Debug Multithreaded DLL" compiler option in
|
|
your application when you link with the
|
|
build_win32/Debug/libdb32d.lib library (this .lib file
|
|
is actually a stub for libdb32d.DLL). To check this
|
|
setting in Visual C++, choose the "Project/Settings" menu item, and
|
|
under the tab marked "C/C++", select "Code Generation" and see the box
|
|
marked "Use runtime library". This should be set to "Debug
|
|
Multithreaded DLL". If your application is linked against the static
|
|
library, build_win32/Debug/libdb32sd.lib, then you
|
|
will want to set "Use runtime library" to "Debug Multithreaded".
|
|
<p>Setting this option incorrectly can cause multiple versions of the
|
|
standard libraries to be linked into your application (one on behalf
|
|
of your application, and one on behalf of the Berkeley DB library). That
|
|
violates assumptions made by these libraries, and traps can result.
|
|
<p><li><b>Why are the build options for DB_DLL marked as "Use MFC in a Shared DLL"?
|
|
Does Berkeley DB use MFC?</b>
|
|
<p>Berkeley DB does not use MFC at all. It does however, call malloc and free and
|
|
other facilities provided by the Microsoft C runtime library. We've found
|
|
in our work that many applications and libraries are built assuming MFC,
|
|
and specifying this for Berkeley DB solves various interoperation issues, and
|
|
guarantees that the right runtime libraries are selected. Note that since
|
|
we do not use MFC facilities, the MFC library DLL is not marked as a
|
|
dependency for libdb.dll, but the appropriate Microsoft C runtime is.
|
|
</ol>
|
|
<table><tr><td><br></td><td width="1%"><a href="../../ref/build_win/notes.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../ref/toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/build_vxworks/intro.html"><img src="../../images/next.gif" alt="Next"></a>
|
|
</td></tr></table>
|
|
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
|
</body>
|
|
</html>
|