Hi, All

 

I am trying to run Boost.Python in my IDE. Here is my tools:

 

Microsoft Visual Studio 2012 Express Version (64-bit), Python 2.7 (64-bit), Boost 1.54, Windows7 64-bit.

 

And my code is really simple. I created an empty project, and create a source.cpp as follows:

 

#include <boost\python.hpp>

#include <Python.h>

using namespace std;

 

void main()

{

       return;

}

 

After debugging, an error pops out:

 

“error LNK2001: unresolved external symbol __imp___Py_NoneStruct”

 

May I know where am I wrong?

 

Regards

 

Wenlong Wang

Risk Analyst, Capquest Group Ltd

Email: wwang@capquest.co.uk

Fleet 27, Rye Close, Fleet, GU51 2QQ.

Website: 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.