- 博客(2)
- 收藏
- 关注
原创 undefined reference to symbol ‘dlsym@@GLIBC_2.4
1.错误说明在C++ CMAKE工程交叉编译过程中出现这个错误:undefined reference to symbol 'dlsym@@GLIBC_2.4,问题原因找不到libdl.so文件2.解决过程(1) 参考网上诸多教程,在CMAKE工程的CMAKE_CXX_FLAGS末尾加上了-ldl,但问题依然存在。(2) 直接在target_link_libraries(XX_NAME ${LIB1} ${LIB2} ... dl)的末尾加上了dl库,问题解决。...
2020-12-26 23:06:16
2846
5
原创 C语言中的程序崩溃情景
1.结构体中嵌套指针,内部指针没判空例:struct t0{ int a; int *a1;};struct t1{ int b; struct t0 *b1; }c;void fun1(struct t1 *tmp){ int value = 0; if ((NULL == tmp) || (NU
2017-07-24 22:51:28
1283
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人