Boost logo

Boost Users :

Subject: [Boost-users] How to solve __imp_Py_NoneStruct error in C++?
From: Wenlong Wang (wwang_at_[hidden])
Date: 2013-09-25 10:52:17


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_at_[hidden]
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. 



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