Berkeley DB (VC6.0 compilation environment configuration)

Source: Internet
Author: User

Operating system: WinXP

VC Environment: VC6.0

Required files: Berkeley db installation file (Db-.msi) http://www.oracle.com/technology/software/products/berkeley-db/index.html

Steps:

1. Run Db-4.7.25.msi, install Berkeley DB

2. Build Berkeley DB

1〉 Open Project with VC6.0

(C:\Program Files\oracle\berkeley DB \db-4.7.25\build_windows)

2〉 Open the VC's Build drop-down menu, select Set Active configuration, and select build configuration, where Win32 release is selected.

3〉 Press F7 to compile

☆ generated file Libdb47.lib in release after compiling

VC Environment Configuration

1. Select Project->settings->c++, select the code generations,use run-timelibrary Select the Debug multithreaded DLL option.

2. Select Tools->options->directories

In the list of paths to include files, add:

C:\Program Files\oracle\berkeley DB \include

C:\Program Files\oracle\berkeley DB \db-4.7.25

In the path list of the library files, add:

C:\Program Files\oracle\berkeley DB \db-4.7.25\build_windows\release

3. Add Libdb47.lib to the object/modules of Project->settings->link's General tab.

Multiple lib files separated by spaces

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.