K
K
katya_chatskaya2017-10-31 08:30:34
Python
katya_chatskaya, 2017-10-31 08:30:34

How to compile a project with Boost.python?

In MVS 2015 I am writing a C++ module for a Python project using Boost.python, there is a wrapper and a simple class, but there was a compilation error "LNK1104 cannot open file "boost_python3-vc140-mt-gd-1_65_1.lib" ", I read that this occurs due to a mismatch between 32-x and 64-x programs, but I have everything on 32-bits. What else could be wrong and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2017-10-31
@katya_chatskaya

It looks like this is a static boost.python library, apparently you need to build it or take an already built binary of a suitable bit depth and add it to the compiler options.
PS: a year ago, the module for python did the same, only in bare C. Quite successful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question