使用 mysql 快速修复 windows - 编译错误 python 2.7

quickfix on windows with mysql - compile error python 2.7

我在尝试使用 setuptools 在 windows 上为 python 编译 quickfix 时出现此错误,后端为 mysql:

MySQLStore.obj : error LNK2019: unresolved external symbol _strptime referenced in function "private: void __thiscall FIX::MySQLStore::populateCache(void)" (?populateCache@MySQLStore@FIX@@AAEXXZ)
build\lib.win32-2.7\_quickfix.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\link.exe' failed with exit status 1120

我没有安装 visual studio(或没有任何使用经验),有没有办法在没有它的情况下解决这个问题?

谢谢,

查理

问题是我没有包含 strptime.c 文件(重命名为 strptime.cpp)并且还修改了此文件以包含 strptime.h header