[issue9079] Make gettimeofday available in time module

Reid Kleckner report at bugs.python.org
Fri Jul 16 23:52:22 CEST 2010


Reid Kleckner <rnk at mit.edu> added the comment:

Right, it's one of the peculiarities of archive files (I think).  When none of an object file's symbols are used from the main program, the object file is dropped on the floor, ie not included.  This has bizarre consequences in C++ with static initializers, which get dropped.

On Windows, the PyAPI_FUNC macros should prevent the linker from stripping the datetime stuff.

Jeff Yasskin says you should create a noop function in your object file and call it from PyMain for force linkage of the object file you're building.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9079>
_______________________________________


More information about the Python-bugs-list mailing list