July 1, 2004
8:32 p.m.
Faheem Mitha <faheem@email.unc.edu> writes:
http://www.boost-consulting.com/boost/libs/python/doc/tutorial/doc /using_the_interpreter.html
uses
object main_module( handle<>(borrowed(PyImport_AddModule("__main__"))));
instead, which does not compile with gcc 3.3, at least for me.
GCC bug, as I've already said.
In any case, as I already said, even when this compiles correctly, it still does not seem to execute the interpreter correctly, ie. I get the error
NameError: name 'file' is not defined
Can you suggest what might be the problem here?
Nope, sorry. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com