F
Frédéric Degraeve
Hello,
I tried this code with vs7-8 and boost1.34.1-1.35.0 and my python is a
2.4. The call to Cpython works well but boost:
ython doesn't work.
I've got an exception about an access violation reading location
0x00000000.
help, please?
thank you.
Frédéric
#include "stdafx.h"
#include <boost/python.hpp>
#include <iostream>
#include <stdexcept>
#include <cassert>
using namespace boost:
ython;
int _tmain(int argc, _TCHAR* argv[])
{
Py_Initialize();
PyObject* pSys = PyImport_ImportModule("sys"); // works
boost:
ython:
bject sys = boost:
ython::import("sys"); // doesnt
work
return 0;
}
I tried this code with vs7-8 and boost1.34.1-1.35.0 and my python is a
2.4. The call to Cpython works well but boost:
I've got an exception about an access violation reading location
0x00000000.
help, please?
thank you.
Frédéric
#include "stdafx.h"
#include <boost/python.hpp>
#include <iostream>
#include <stdexcept>
#include <cassert>
using namespace boost:
int _tmain(int argc, _TCHAR* argv[])
{
Py_Initialize();
PyObject* pSys = PyImport_ImportModule("sys"); // works
boost:
work
return 0;
}