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 with the following code:
#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.