Thursday, 12 September 2013

Interfacing python with c++

Interfacing python with c++

I am trying to interface python with C++. I am using Visual Studio Express
2012. I also have an enthought python 2.7 distribution. When I tried to
build a Release on Win 32 for the following
#include "stdafx.h"
#include "C:/Python27/include/Python.h"
#include
"C:/Python27/Lib/site-packages/numpy/core/include/numpy/arrayobject.h"
using namespace std;
int main( int argc, char* argv[] )
{
int x = 1;
PyObject *mod1;
Py_Initialize();
return 0;
}
I get the following error,
Error 1 error LNK2001: unresolved external symbol _imp_Py_Initialize
Please help, any ideas more than welcome.

No comments:

Post a Comment