This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rnk
Recipients belopolsky, georg.brandl, mark.dickinson, pitrou, rhettinger, rnk, tim.golden, tim.peters
Date 2010-07-16.21:52:20
SpamBayes Score 0.06144624
Marked as misclassified No
Message-id <1279317142.86.0.0658018072861.issue9079@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-16 21:52:22rnksetrecipients: + rnk, tim.peters, georg.brandl, rhettinger, mark.dickinson, belopolsky, pitrou, tim.golden
2010-07-16 21:52:22rnksetmessageid: <1279317142.86.0.0658018072861.issue9079@psf.upfronthosting.co.za>
2010-07-16 21:52:21rnklinkissue9079 messages
2010-07-16 21:52:20rnkcreate