
linux C
文章平均质量分 61
zlyong0018
对代码不满足,是任何真正有天才的程序员的根本特征。
展开
-
Linux C 链接时有undefined报错 / 忽略链接顺序
target_link_libraries(${PROJECT_NAME} -Wl,--unresolved-symbols=ignore-in-shared-libs)target_link_libraries(${PROJECT_NAME} -Wl,--no-undefined) # error if there is an undefined symboltarget_link_libraries(${PROJECT_NAME} -Wl,--start-group) # ignore l...原创 2021-09-14 14:36:28 · 707 阅读 · 0 评论 -
程序崩溃时打印调用栈
source code:#include #include #include #include #include #define PRINT_FUNC_NAME() \ printf("invocke %s\n", __func__)void func1(void){ PRINT_FUNC_NAME(); int *原创 2013-07-10 12:32:49 · 1056 阅读 · 0 评论 -
Legacy __sync Built-in Functions for Atomic Memory Access
Legacy __sync Built-in Functions for Atomic Memory Access copy from: http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html The following built-in functions are intended to be compat转载 2013-08-02 18:12:41 · 655 阅读 · 0 评论 -
libtool
http://www.gnu.org/software/libtool/manual/libtool.html原创 2013-11-15 17:13:20 · 487 阅读 · 0 评论 -
libtool动态库版本系统之个人理解
首先看下libtool官方对library版本系统的说明。 7.3 Updating library version informationIf you want to use libtool's versioning system, then you must specify the version information to libtool using the -version-原创 2013-11-20 17:48:23 · 2140 阅读 · 0 评论 -
linux下sysctl()函数初探
ls /proc/sys/net/ipv4/ip_forward /proc/sys/net/ipv4/ip_forward原创 2014-11-11 11:48:41 · 2343 阅读 · 0 评论