|
Boost Users : |
Subject: [Boost-users] Link errors building against Boost Python
From: Chris Weisiger (cweisiger_at_[hidden])
Date: 2011-05-12 12:30:00
I'm trying to build PyFTGL against 64-bit Python2.7. PyFTGL uses Boost, so I
have to build Boost as well (the downloadable installers are all 32-bit). I
created a user-config.jam in my home directory with this line:
using python : 2.7 : C:\\Python27x64\\python.exe ;
and then built Boost's Python libraries with
> bjam.exe --toolset=msvc-9.0 --address-model=64 --with-python
PyFTGL uses Python's distutils to build, which doesn't know how to find
libraries whose names start with "lib", so I renamed the .lib files in the
stage/lib directory: "libboost_python-vc90-mt-1_46_1.lib" to
"boost_python-vc90-mt-1_46_1.lib" and so on. Then I tried to build PyFTGL
with this:
> C:\Python27x64\python.exe setup.py build
I get 41 link errors. Here's the first:
ftgl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
protected: __cdecl boost::python::detail::tuple_base::tuple_base(struct
boost::python::detail::new_reference_t *)" (__imp_??0tuple_base_at_detail
@python_at_boost@@IEAA_at_PEAUnew_reference_t_at_123@@Z) referenced in function
"public: __cdecl boost::python::tuple::tuple(struct
boost::python::detail::new_reference_t *)" (??0tuple_at_python@boost@
@QEAA_at_PEAUnew_reference_t_at_detail@12@@Z)
I've put the entire output up on a pastebin here:
http://pastebin.com/iuPzKdKs
Any ideas what's going wrong here? Thanks for any suggestions!
-Chris
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net