Boost. Python cannot be used properly due to Python version problems.

Source: Internet
Author: User

(Www.darkbull.net)

Today, we plan to integrate python into the project as a scripting language, mainly used to process string and Network Interactions (such as sending emails and submitting HTTP requests ). The boost. Python component provides very convenient interfaces, making it easy to integrate python into C/C ++ projects. Today, when I run the example I wrote earlier, I found that it cannot be run, whether it is calling the C ++ extension library in Python or calling python in C ++. When calling the C ++ extension module in Python, the following error is displayed: DLL load failed: the specified module cannot be found. If python is called in C ++, the system prompts that python25.dll cannot be found. Oh, this error reminds me that my boost was compiled earlier. At that time, Python 2.5 was used on the computer, and now it is consistent with the Python version used by the company project, python 2.6.2 is installed, and then boost is re-compiled. python components. After the newly compiled DLL is used, it runs normally. Oh -- Yeah ~~~~

The detailed compilation settings for boost. Python may be referenced in this article: http://www.boost.org/doc/libs/1_43_0/libs/python/doc/building.html#configuring-boost-build

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.