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子系统下使用静态编译报错:/usr/bin/ld: cannot find -ltaos #176

Open
dimichen opened this issue Jun 9, 2023 · 0 comments

Comments

@dimichen
Copy link

dimichen commented Jun 9, 2023

1、driver-go版本:3.0.4.2
2、编译命令:go build -ldflags "-linkmode 'external' -extldflags '-static'" -o main_linux
3、报错信息:
/usr/local/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1
/usr/bin/ld: cannot find -ltaos
collect2: error: ld returned 1 exit status
image
4、系统目录/usr/lib、/usr/lib64下都有libtaos.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

1 participant