[C++-sig] Re: compile errors with embedding example from tutorial

David Abrahams dave at boost-consulting.com
Fri Jul 2 05:32:09 CEST 2004

Faheem Mitha <faheem at 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

More information about the Cplusplus-sig mailing list