Problem when installing Boost.Python

Wenlong Wang wwang at capquest.co.uk
Thu Sep 26 05:38:07 EDT 2013


Hi, All

 

I'm not sure if am asking in the right place, but since this is Python
related, I'd like to try it out.

 

My setup is Windows7 64-bit, Python 2.7 64bit, Boost 1.54, Visual Studio
2012 Express Version 64bit.

 

I am a beginner of Python, and am trying to bridge Python and C++. Thus
I download the Boost library.

 

I followed the instruction here:
http://www.boost.org/doc/libs/1_54_0/more/getting_started/windows.html

 

And successfully installed the Basic Boost. 

 

Then I found that Boost.Python requires a separately installation,
according to another instruction here:

 

http://www.boost.org/doc/libs/1_54_0/libs/python/doc/building.html

 

I am stuck at step 3.1.4 where the instruction says to run a example:

 

4.      Invoke bjam. Replace the "stage" argument from the example
invocation from section 5 of the Getting Started Guide
<http://www.boost.org/doc/libs/1_54_0/more/getting_started/index.html>
with "test," to build all the test targets. Also add the argument
"--verbose-test" to see the output generated by the tests when they are
run.

On Windows, your bjam invocation might look something like:

C:\boost_1_34_0\...\quickstart> bjam toolset=msvc --verbose-test test
 

When I input the command line above, I have 135 unresolved external
errors! One of them is like follows:

 

exec.obj : error LNK2019: unresolved external symbol
__imp__PyEval_GetGlobals referenced in function 

"class boost::python::api::object __cdecl boost::python::eval(class
boost::python::str,class boost::python::api::object,

class
boost::python::api::object)"(?eval at python@boost@@YA?AVobject at api@12 at Vstr
@12 at V3412@1 at Z)

..\..\..\..\bin.v2\libs\python\build\msvc-11.0\debug\boost_python-vc110-
gd-1_54.dll 

 

I know this is more C++, however, I guess someone in this mailing list
may have experienced with Boost.Python. My apologies if this mail
bothers you.

 

Can anyone help me to work around this?

 

Thank you!

 

Regards

Long


 
Wenlong Wang
Risk Analyst, Capquest Group Ltd
  
Email: wwang at capquest.co.uk
Fleet 27, Rye Close, Fleet, GU51 2QQ.
Website: http://www.capquest.co.uk/
 
This e-mail is intended solely for the addressee, is strictly confidential and may also be legally privileged. If you are not the addressee please do not read, print, re-transmit, store or act in reliance on it or any attachments. Instead, please email it back to the sender and then immediately permanently delete it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. Opinions, conclusions and other information in this e-mail and any attachments are solely those of the author and do not represent those of Capquest Group Limited or any of its subsidiaries unless otherwise stated. Capquest Group Limited (registered number 4936030), Capquest Debt Recovery Limited (registered number 3772278), Capquest Investments Limited (registered number 5245825), Capquest Asset Management Limited (registered number 5245829) and Capquest Mortgage Servicing Limited (registered number 05821008) are all limited companies registered in England and Wales with their registered offices at Fleet 27, Rye Close, Fleet, Hampshire, GU51 2QQ. Each company is a separate and independent legal entity. None of the companies have any liability for each other's acts or omissions. Group VAT registration number 844281719. Members of the Capquest group are regulated under the Consumer Credit Act 1974 and are members of the Credit Services Association. This communication is from the company named in the sender's details above. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130926/3a6ddb15/attachment.html>


More information about the Python-list mailing list