loading C++ into Python; static instance initialization?

Ed F. McCurdy ed at sis.yorku.ca
Tue Jul 6 13:05:19 EDT 1999


The	quick answer probably is
link using the C++ compiler rather than ld or the C compiler.

The longer answer is that the static C++ objects with ctors
are named in a special way, and that during linking
code to call the ctors (and dtors) is generated. gcc calls this
process "collect", others have called it "munch".

Hope this helps,
Ed
-- 

Edward F. McCurdy,               | ed at sis.yorku.ca
York University, Toronto, Canada | (416) 736-2100x22685





More information about the Python-list mailing list