Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu x64下goctp编译失败 #9

Open
windwoo227 opened this issue Jan 31, 2019 · 5 comments
Open

ubuntu x64下goctp编译失败 #9

windwoo227 opened this issue Jan 31, 2019 · 5 comments

Comments

@windwoo227
Copy link

windwoo227 commented Jan 31, 2019

go get -u github.com/qerio/goctp 以后显示以下错误,请问如何解决
/usr/bin/ld: 找不到 -lthostmduserapi
/usr/bin/ld: 找不到 -lthosttraderapi
collect2: error: ld returned 1 exit status

@windwoo227
Copy link
Author

./github.com/qerio/goctp/api/SFIT_CTP_6.3.11_20180109_tradeapi/v6.3.11_20180109_api_tradeapi_linux64 这个目录下面缺少libthostmduserapi.so和libthosttraderapi.so,自行添加或者麻烦请作者添加一下

@RonadoLong
Copy link

./github.com/qerio/goctp/api/SFIT_CTP_6.3.11_20180109_tradeapi/v6.3.11_20180109_api_tradeapi_linux64 这个目录下面缺少libthostmduserapi.so和libthosttraderapi.so,自行添加或者麻烦请作者添加一下

请问你加进去就可以了吗?我的还是报 /usr/bin/ld: 找不到 -lthostmduserapi

@windwoo227
Copy link
Author

我是在linux下编译的,在cmake文件里设置ctp的目录。如果是在windows下就应该是dll文件了

@RonadoLong
Copy link

我是在linux下编译的,在cmake文件里设置ctp的目录。如果是在windows下就应该是dll文件了

感谢回复,能发下你是怎么设置的吗?谢谢

@lovepepsi
Copy link

我是在linux下编译的,在cmake文件里设置ctp的目录。如果是在windows下就应该是dll文件了

感谢回复,能发下你是怎么设置的吗?谢谢

/usr/lib目录下把这两个库文件放进去,命名为libthostmduserapi.so 和libthosttraderapi.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants