The problem of MongoDB cxx driver Legacy scons compilation band OpenSSL

Source: Internet
Author: User
Tags mongodb openssl

CONSSCONF_TEMPCONFTEST_9.C (3): Fatal error C1083: Cannot open include file: "Openssl/ssl.h": No such file or directory

Compile the MongoDB C + + driver legacy version 1.1.2. When inserting data into the game's MongoDB database endlessswarms, the start is normal. Since the process with user authentication is set up later, user authentication must be performed when Dbclientconnection is invoked. This time the connection error, prompted to recompile the MongoDB legacy driver, and then attach the parameters--ssl support.

SCons--64--ssl   --cpppath= "D:\tool\boost_1_64_0"--libpath= "D:\tool\boost_1_64_0\bin \vc14\lib64"


A CMD hint error was found. Unable to find the header and Lib file where OpenSSL resides. Then go to download OpenSSL, compile and build the corresponding library. Add to environment variables, all kinds of tossing or not.

Later on the internet to find a way: https://segmentfault.com/q/1010000006224679/a-1020000006547408 This is a new way to circumvent the path to find ideas.

Or I start to modify the contents of the SCons construct compile process file.

Specific strategy:

I took the OpenSSL. The H file directory is placed under the Cpppath specified boost directory, and the DLL is copied to boost's lib to compile it properly.


Related Article

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.