loading C++ into Python; static instance initialization?
Ed F. McCurdy
ed at sis.yorku.ca
Tue Jul 6 13:05:19 EDT 1999
More information about the Python-list mailing list
Tue Jul 6 13:05:19 EDT 1999
- Previous message (by thread): mxCGIPython question (was: Build the Python library into the binary)
- Next message (by thread): changing some lines in a file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): mxCGIPython question (was: Build the Python library into the binary)
- Next message (by thread): changing some lines in a file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list