-
Notifications
You must be signed in to change notification settings - Fork 58
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
windows环境使用go-sdk,编译报错 #252
Comments
|
根据提供的1和2步骤,仍然出现相同报错,步骤3所指的目录具体是哪个? @bxq2011hust |
已经尝试在该目录下创建libs并放入libbcos-c-sdk.dll,编译仍然报相同错误。 |
go env GOMODCACHE之后的目录和动态库是类似下面的结构吗?检查下你放置的目录是不是正确
|
是这样的目录结构,但是我是放到 |
猜测是动态库找不到导致的,你需要在编译得到的exe所在的目录,也放置这个动态库,windows会自动找到 |
放置了,程序仍然无法运行。 |
请贴一下报错信息 |
exe程序没有打印任何日志就退出了,如何排查?不引入go-sdk会正常执行并打印日志。 |
@iamnotsofun 在cmd里面执行看有没有报错缺动态库,或者搜一下我记得有个工具可以查看exe依赖的动态库,类似于linux下的ldd |
通过cmd执行会弹窗报错缺少动态库,PowerShell不会。dll改名后解决。
|
环境:
go1.21.6
使用gosdk README中的hello_main.go部署合约,编译时报错:
The text was updated successfully, but these errors were encountered: