{"action":"created","issue":{"url":"https://api.github.com/repos/lovelylain/pyctp/issues/47","labels_url":"https://api.github.com/repos/lovelylain/pyctp/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/lovelylain/pyctp/issues/47/comments","events_url":"https://api.github.com/repos/lovelylain/pyctp/issues/47/events","html_url":"https://github.com/lovelylain/pyctp/issues/47","id":96031309,"number":47,"title":"Problems Running on Linux64","user":{"login":"johngu","id":7248239,"avatar_url":"https://avatars.githubusercontent.com/u/7248239?v=3","gravatar_id":"","url":"https://api.github.com/users/johngu","html_url":"https://github.com/johngu","followers_url":"https://api.github.com/users/johngu/followers","following_url":"https://api.github.com/users/johngu/following{/other_user}","gists_url":"https://api.github.com/users/johngu/gists{/gist_id}","starred_url":"https://api.github.com/users/johngu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngu/subscriptions","organizations_url":"https://api.github.com/users/johngu/orgs","repos_url":"https://api.github.com/users/johngu/repos","events_url":"https://api.github.com/users/johngu/events{/privacy}","received_events_url":"https://api.github.com/users/johngu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-20T10:10:07Z","updated_at":"2015-07-21T15:48:20Z","closed_at":null,"body":"Hello. Thanks for posting this API. I am having some trouble getting this to work on linux64. Everything compiles fine, but when I run test.py, I get the following:\r\n\r\n`[jgu@jgulinux /projects/pyctp/build/lib.linux-x86_64-2.7]$ python test.py \r\nTraceback (most recent call last):\r\n  File \"test.py\", line 4, in <module>\r\n    from ctp.futures import ApiStruct, MdApi\r\n  File \"/spare/local/jgu/projects/pyctp/build/lib.linux-x86_64-2.7/ctp/futures/__init__.py\", line 820, in __get__\r\n    value = self.fget()\r\n  File \"/spare/local/jgu/projects/pyctp/build/lib.linux-x86_64-2.7/ctp/futures/__init__.py\", line 834, in MdApi\r\n    from ._MdApi import _init, MdApi; _init(ApiStruct)\r\nImportError: /spare/local/jgu/projects/pyctp/build/lib.linux-x86_64-2.7/ctp/futures/_MdApi.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv`\r\n\r\n`[jgu@jgulinux /projects/pyctp/build/lib.linux-x86_64-2.7]$ nm -g ctp/futures/_MdApi.so | grep _ZN15CThos\r\n                 U _ZN15CThostFtdcMdApi13GetApiVersionEv\r\n                 U _ZN15CThostFtdcMdApi15CreateFtdcMdApiEPKcbb\r\n0000000000008bd0 W _ZN15CThostFtdcMdSpi10OnRspErrorEP22CThostFtdcRspInfoFieldib\r\n0000000000008bb0 W _ZN15CThostFtdcMdSpi14OnRspUserLoginEP27CThostFtdcRspUserLoginFieldP22CThostFtdcRspInfoFieldib\r\n0000000000008bc0 W _ZN15CThostFtdcMdSpi15OnRspUserLogoutEP25CThostFtdcUserLogoutFieldP22CThostFtdcRspInfoFieldib\r\n0000000000008b80 W _ZN15CThostFtdcMdSpi16OnFrontConnectedEv\r\n0000000000008c30 W _ZN15CThostFtdcMdSpi16OnRtnForQuoteRspEP26CThostFtdcForQuoteRspField\r\n0000000000008ba0 W _ZN15CThostFtdcMdSpi18OnHeartBeatWarningEi\r\n0000000000008be0 W _ZN15CThostFtdcMdSpi18OnRspSubMarketDataEP33CThostFtdcSpecificInstrumentFieldP22CThostFtdcRspInfoFieldib\r\n0000000000008b90 W _ZN15CThostFtdcMdSpi19OnFrontDisconnectedEi\r\n0000000000008c00 W _ZN15CThostFtdcMdSpi19OnRspSubForQuoteRspEP33CThostFtdcSpecificInstrumentFieldP22CThostFtdcRspInfoFieldib\r\n0000000000008bf0 W _ZN15CThostFtdcMdSpi20OnRspUnSubMarketDataEP33CThostFtdcSpecificInstrumentFieldP22CThostFtdcRspInfoFieldib\r\n0000000000008c20 W _ZN15CThostFtdcMdSpi20OnRtnDepthMarketDataEP30CThostFtdcDepthMarketDataField\r\n0000000000008c10 W _ZN15CThostFtdcMdSpi21OnRspUnSubForQuoteRspEP33CThostFtdcSpecificInstrumentFieldP22CThostFtdcRspInfoFieldib`\r\n\r\nIt seems like in the actual compile, GetApiVersion and CreateFtdcMdApi are both undefined.\r\n"},"comment":{"url":"https://api.github.com/repos/lovelylain/pyctp/issues/comments/123380671","html_url":"https://github.com/lovelylain/pyctp/issues/47#issuecomment-123380671","issue_url":"https://api.github.com/repos/lovelylain/pyctp/issues/47","id":123380671,"user":{"login":"lovelylain","id":689638,"avatar_url":"https://avatars.githubusercontent.com/u/689638?v=3","gravatar_id":"","url":"https://api.github.com/users/lovelylain","html_url":"https://github.com/lovelylain","followers_url":"https://api.github.com/users/lovelylain/followers","following_url":"https://api.github.com/users/lovelylain/following{/other_user}","gists_url":"https://api.github.com/users/lovelylain/gists{/gist_id}","starred_url":"https://api.github.com/users/lovelylain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovelylain/subscriptions","organizations_url":"https://api.github.com/users/lovelylain/orgs","repos_url":"https://api.github.com/users/lovelylain/repos","events_url":"https://api.github.com/users/lovelylain/events{/privacy}","received_events_url":"https://api.github.com/users/lovelylain/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T15:48:19Z","updated_at":"2015-07-21T15:48:19Z","body":"tested, no problem.\r\n[lain@ArchLinux lib.linux-x86_64-2.7]$ md5sum ctp/futures/*.so\r\n5bfdbc6d8f4b7dcf57d931084cd4d460  ctp/futures/libthostmduserapi.so\r\nb955c908c8dac9603e4c66216f18ee80  ctp/futures/libthosttraderapi.so"}}