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

由CThostFtdcTraderApi.GetApiVersion()得到的CTP版本信息不变 #7

Open
HanYuanDao opened this issue Dec 19, 2024 · 1 comment

Comments

@HanYuanDao
Copy link

我使用的是windows系统 替换了shared目录下的.h文件和dll、lib文件并保证目录正确 clean之后重新build 在日志中却得到相同的CTP版本信息 我不知道是否还有别的缓存存在

@SheldonNico
Copy link
Owner

貌似是 dll 没有使用更新版本的 dll,可能还是用了老版本的。运行时使用的 dll 是可以替换的,shared 的 dll 只是给 cargo b 使用,不代表运行会用它,你可以试试把 cargo b 产生的 exe 文件和 shared 下的 dll 复制出来放在一个目录下运行,确保目标 dll 能够被优先搜索到。

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

2 participants