[C++-sig] Re: please help with simple program crashing

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

Drew Ferraro <gfilla at gmail.com> writes:

> hi dave,
> thanks for your reply! this might sound stupid, but could you tell me
> what i should do then to have them both use the same standard library?
> im using visual studio .net 2003 if that matters. 

Yes, it matters.  You need to rebuild your python with that compiler
or resign yourself to not passing FILE* between python and your
extension module.

> also, what is the
> alternative to Py_Finalize

Simply not calling it.

> , and why is it incompatible but the other Py_XXX function are not ?

see http://www.boost.org/libs/python/todo.html#pyfinalize-safety

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list