Comments (7)
mineralres ,win64 后来编译成了没?
from goctp.
Windows系统的dll用的vs编译器,导出的Dll没有用extern c ,gcc 编译各种坑,直接放弃
from goctp.
我也弃坑了,golang加c, c++用起来特别不爽
from goctp.
修改“-Wl,-rpath=”为“-Wl,-rpath,”,避免报错。这个问题已经解决。
from goctp.
仍然不行
go build github.com/qerio/goctp: invalid flag in #cgo LDFLAGS: C:/Users/Administ
rator/go/src/github.com/qerio/goctp/api/SFIT_CTP_6.3.11_20180109_tradeapi/201801
09_tradeapi64_windows/thostmduserapi.lib
from goctp.
修改“-Wl,-rpath=”为“-Wl,-rpath,”,避免报错。这个问题已经解决。
设置了
export CGO_CXXFLAGS_ALLOW="."
export CGO_LDFLAGS_ALLOW="."
export CGO_CFLAGS_ALLOW="."
之后,显示以下错误
C:\Users\ADMINI~1\AppData\Local\Temp\go-build872063822\b001_x004.o: In function_wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_3_goctp_1eab63fb76b94638': /tmp/go-build/goctp_wrap.cxx:131615: undefined reference to
CThostFtdcMdApi::CreateFtdcMdApi(char const, bool, bool)'
C:\Users\ADMINI~1\AppData\Local\Temp\go-build872063822\b001_x004.o: In function_wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_1_goctp_1eab63fb76b94638': /tmp/go-build/goctp_wrap.cxx:135899: undefined reference to
CThostFtdcTraderApi::CreateFtdcTraderApi(char const*)'
collect2.exe: error: ld returned 1 exit status
from goctp.
@sunnyboy00 这个问题我正在解决,目前主要确定CGO是否支持Windows DLL 或 lib文件的加载。
from goctp.
Related Issues (13)
- 你好,能不能麻烦你把window64的也弄一下,自己弄了好久。。。 HOT 5
- Linux下一个完整的问题总结! HOT 2
- 是否更新了穿透式 app_id 和authcode的相关内容?
- goctp_trader_example:发送用户登录请求: 失败: Bad format user system info HOT 1
- 大佬,最新版本还在引用6.3.11的库,编译会出问题,新的库只有linux,测试编译有点问题
- 交易登录报错:不合法的登录
- trade api main中 执行到 Join 有致命错误 HOT 11
- osx系统
- centos7下载更新后的的goctp编译失败 HOT 3
- ppInstrumentID 只能用静态字符串 HOT 4
- GOCTP中的tradeApi调用主动函数总是连接失败(返回-1) HOT 2
- ubuntu x64下goctp编译失败 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goctp.