localtime mingw distutils
Verfasst: Freitag 2. November 2012, 14:56
Hallo,
ich versuche das hier beschriebene Problem zu lösen oder zu umgehen:
http://bugs.python.org/issue3308
Basically MinGW erroneously ships a .lib saying localtime is in MSVCR90.DLL when it isn't.
That means there is no link failure but the pyd will fail to load without information as to why.
Fixing the .lib means that localtime is picked up from MSVCRT.DLL (ie no version in name) and everything appears to work well.
Das beschriebene hilft bei meinem code nicht (pythonxy 2.6.5.6):
#define __MSVCRT_VERSION__ 0x0710 //oder was auch immer
#include <time.h>
#define time_t __time64_t
#define localtime _localtime64
#define time _time64
kann mir jemand sagen wie ich z.B. erreiche, dass die msvcrt.dll verwendet wird damit ich ganz normal die localtime() funktion aufrufen kann?
gibt es ansonsten eine andere möglichkeit an die Uhrzeit zu kommen?
ich versuche das hier beschriebene Problem zu lösen oder zu umgehen:
http://bugs.python.org/issue3308
Basically MinGW erroneously ships a .lib saying localtime is in MSVCR90.DLL when it isn't.
That means there is no link failure but the pyd will fail to load without information as to why.
Fixing the .lib means that localtime is picked up from MSVCRT.DLL (ie no version in name) and everything appears to work well.
Das beschriebene hilft bei meinem code nicht (pythonxy 2.6.5.6):
#define __MSVCRT_VERSION__ 0x0710 //oder was auch immer
#include <time.h>
#define time_t __time64_t
#define localtime _localtime64
#define time _time64
kann mir jemand sagen wie ich z.B. erreiche, dass die msvcrt.dll verwendet wird damit ich ganz normal die localtime() funktion aufrufen kann?
gibt es ansonsten eine andere möglichkeit an die Uhrzeit zu kommen?