.I5Berkeley DB: Building for Windows: FAQ[P/

Building for Windows: FAQ


    

  1. VMy Win* C/C++ application crashes in the Berkeley DB library when Berkeley DB calls8fprintf (or some other standard C library function).

    IYou should be using the "Debug Multithreaded DLL" compiler option in yourFapplication when you link with the build_win32/Debug/libdb.lib libraryI(this .lib file is actually a stub for libdb.DLL). To check this settingIin Visual C++, choose the "Project/Settings" menu item, and under the tabDmarked "C/C++", select "Code Generation" and see the box marked "UseGruntime library". This should be set to "Debug Multithreaded DLL". If6your application is linked against the static library,Dbuild_win32/Debug/libdbs.lib, then you will want to set "Use runtime"library" to "Debug Multithreaded".

    BSetting this option incorrectly can cause multiple versions of theDstandard libraries to be linked into your application (one on behalfIof your application, and one on behalf of the Berkeley DB library). ThatCviolates assumptions made by these libraries, and traps can result.

ÿÿ