[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

Amaury Forgeot d'Arc report at bugs.python.org
Mon Jul 7 14:36:06 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

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

----------
nosy: +amaury.forgeotdarc

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


More information about the Python-bugs-list mailing list