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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, loewis, rogerbinns
Date 2008-07-07.12:36:01
SpamBayes Score 0.00021216655
Marked as misclassified No
Message-id <1215434166.76.0.900865126116.issue3308@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that mingw is unable to compile the simplest program containing
a call to localtime():

$ echo "#include <time.h>
> int main() { localtime(NULL); }" > t.c
$ gcc -mno-cygwin t.c -lmsvcr90

Then starting "a.exe" displays a modal box with the message: "The
procedure entry point localtime could not be located in the dynamic link
library msvcr90.dll."

So the problem is not python-specific, and should be reported to Mingw.

However, I discovered that it works if you include time.h this way:

   #define __MSVCRT_VERSION__ 0x0700    /* whatever above 0x0601 */
   #include <time.h>
   #define time_t __time64_t
   #define localtime _localtime64
   #define time _time64
History
Date User Action Args
2008-07-07 12:36:07amaury.forgeotdarcsetspambayes_score: 0.000212167 -> 0.00021216655
recipients: + amaury.forgeotdarc, loewis, rogerbinns
2008-07-07 12:36:06amaury.forgeotdarcsetspambayes_score: 0.000212167 -> 0.000212167
messageid: <1215434166.76.0.900865126116.issue3308@psf.upfronthosting.co.za>
2008-07-07 12:36:05amaury.forgeotdarclinkissue3308 messages
2008-07-07 12:36:04amaury.forgeotdarccreate