haifengat / pyctp

上期技术期货交易api之python封装,实现接口调用。支持windows linux.
Apache License 2.0
249 stars 130 forks source link

使用mac安装时出现了问题,请帮忙看一下 #2

Closed JacketCheung closed 6 years ago

JacketCheung commented 6 years ago

执行 g++ -shared -fPIC ../../ctp_c/trade.cpp -o ./ctp_trade.so ./thosttraderapi.so 出现以下错误。 ld: warning: ignoring file ./thosttraderapi.so, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): ./thosttraderapi.so Undefined symbols for architecture x86_64: "CThostFtdcTraderApi::CreateFtdcTraderApi(char const*)", referenced from: _CreateApi in trade-156781.o ld: symbol(s) not found for architecture x86_64

haifengat commented 6 years ago

只在win和linux测试通过.