dlopen, cross call each other
来源:互联网 发布:赢商网怎么样知乎 编辑:程序博客网 时间:2024/06/05 20:23
http://stackoverflow.com/questions/480617/receive-undefined-symbol-error-when-loading-libary-with-dlopen
main:so reso
gcc -Wl,--export-dynamic -o main main.c -ldl
so:so.c
gcc --shared -fPIC -o libso.so $<
reso:reso.c
gcc --shared -fPIC -o libreso.so $<
Correct solution is to add -rdynamic
to the link command of the main executable. This will add appropriate option told
(which, when using GNU ld
, happens to be --export-dynamic
).
Adding --export-dynamic
directly is technically incorrect: it's a linker option, and so should be added as-Wl,--export-dynamic
, or -Wl,-E
. This is also less portable than-rdynamic
(other linkers have an equivalent, but the option itself is different).
- dlopen, cross call each other
- MSVC 和 MinGW DLL call each other
- Qt and qml Call each other
- C++ call dlopen function
- help each other
- funciton/procedure calling each other
- Let's learn from each other!
- use pipe to contact with each other
- 第一单元 Getting to Know Each Other
- [C/C++](Class include each other)
- master communication with slave each other
- Jquery each方法,call方法
- Cross call between C and C++
- Jquery Cross-Domain ajax call using JSONP
- dlopen
- dlopen()
- dlopen
- dlopen
- 如何为winform中的列表控件Combobox、ListBox控件绑定数据
- Cocos2d-x 学习随记二 Boost::Locale解决中文乱码问题
- github使用笔记
- 测试
- poj1741 Tree
- dlopen, cross call each other
- 2014辽宁省ACM程序设计大赛网络赛 问题 E: Help Your Teacher
- php 解压文件
- 3D数学读书笔记——多坐标系和向量基础
- Android自动化HTML报告
- 【读书笔记】学习OpenCV(中文版)第二章
- 【微软编程一小时】题目1 : Arithmetic Expression
- 命令行执行不回显不提示
- pat 1079