Reid Kleckner <r...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9079>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to