Git Product home page Git Product logo

Comments (7)

ewin1018 avatar ewin1018 commented on June 9, 2024

mineralres ,win64 后来编译成了没?

from goctp.

sunnyboy00 avatar sunnyboy00 commented on June 9, 2024

Windows系统的dll用的vs编译器,导出的Dll没有用extern c ,gcc 编译各种坑,直接放弃

from goctp.

mineralres avatar mineralres commented on June 9, 2024

我也弃坑了,golang加c, c++用起来特别不爽

from goctp.

hankchan avatar hankchan commented on June 9, 2024

修改“-Wl,-rpath=”为“-Wl,-rpath,”,避免报错。这个问题已经解决。

from goctp.

sunnyboy00 avatar sunnyboy00 commented on June 9, 2024

仍然不行

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.

sunnyboy00 avatar sunnyboy00 commented on June 9, 2024

修改“-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.

hankchan avatar hankchan commented on June 9, 2024

@sunnyboy00 这个问题我正在解决,目前主要确定CGO是否支持Windows DLL 或 lib文件的加载。

from goctp.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.