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

链接动态库时,两个动态库中符号重名的问题 #38

Open
easylifesoso opened this issue Apr 3, 2020 · 1 comment
Open

Comments

@easylifesoso
Copy link

easylifesoso commented Apr 3, 2020

c语言实现的命名比较“普通”导致了引入多个类库时候,和其他类库的函数名重复;编译可以通过,但是实际运行时跑去执行了别的类库中实现,导致segment fault

一个堆栈如下图所示,从hmac_sha1()开始跑到别的类库下实现中了。
希望可以改善,较少这种情况
image

@easylifesoso
Copy link
Author

下面地址是网络上一个简单的原理介绍:
https://blog.csdn.net/yao_great/article/details/7913639

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