quickfix on windows with mysql - compile error python 2.7

不羁的心 提交于 2020-01-06 04:31:09

问题


I get this error while trying to compile quickfix on windows for python with a mysql back-end using setuptools:

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

I don't have visual studio installed (or have any experience with it), is there a way I can fix this without it?

Thanks,

Charlie


回答1:


The issue was that I hadn't included the strptime.c file (renamed to strptime.cpp) and also amended this file to include the strptime.h header



来源:https://stackoverflow.com/questions/32456332/quickfix-on-windows-with-mysql-compile-error-python-2-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!