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

bcos-c-sdk symbol conflict #104

Open
JueWei0208 opened this issue Oct 18, 2022 · 1 comment
Open

bcos-c-sdk symbol conflict #104

JueWei0208 opened this issue Oct 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@JueWei0208
Copy link

关于上次bcos3.0在调用的时候 出现的原因我定位到了。由于你们那边提供的sdk在函数导出的时候,将jsoncpp相关的也导出了。然后我自己在编写程序的时候,自己引入了jsoncpp的库。然后编译的时候,不会出现问题。程序运行就core错误。
建议官方在生成bcos3.0的库的时候,将不需要的用到的库不要导出。
看了你们的bcos3.0的sdk,里面也使用了jsoncpp这个库的。
产生错误的原因就是函数导出出现的同名函数符号表
https://blog.csdn.net/segments/article/details/110204695?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-110204695-blog-106636745.pc_relevant_3mothn_strategy_recovery&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-110204695-blog-106636745.pc_relevant_3mothn_strategy_recovery&utm_relevant_index=6 类似这样的问题。

@ywy2090
Copy link
Collaborator

ywy2090 commented Nov 16, 2022

这个问题确实存在,bcos-c-sdk使用了CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 将所有的符号都导出,存在符号冲突的可能性。
后续版本会解决下这个问题,只导出需要导出的符号。

@ywy2090 ywy2090 added the bug Something isn't working label Nov 16, 2022
@ywy2090 ywy2090 changed the title bcos3.0的问题 bcos-c-sdk symbol conflict Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants