上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 问题现象: libpng warning: Application built with libpng-1.6.37 but running with 1.5.13; 原因: 编译时,用的一个版本的库。但是运行的时候用的却是另外一个版本的库。 解决办法: 编译的时候指定通过 -L参数 指向一个版本的 阅读全文
posted @ 2020-04-02 11:21 yushimeng 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 问题现象: [root@localhost mico]# gcc test_wrapper.c -L ./ -lqrencode_wrapper -lqrencode.//libqrencode_wrapper.so:对‘png_set_pHYs’未定义的引用.//libqrencode_wrapp 阅读全文
posted @ 2020-04-02 11:19 yushimeng 阅读(4264) 评论(0) 推荐(0) 编辑
摘要: 情景: 开发了一个http模块,挂在conten-phase阶段, static char * ngx_http_ivms(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { ngx_http_core_loc_conf_t *clcf; clcf = 阅读全文
posted @ 2020-02-25 18:50 yushimeng 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 本来包体长度170是没问题的,接收到r->request_body->bufs->buf->pos, 结尾为r->request_body->bufs->buf->last. cgdb过程中发现last - pos = 170 但是不是指向结尾,而是指向了webrtcid字段里面了。 解答: 报文中 阅读全文
posted @ 2020-02-12 14:50 yushimeng 阅读(270) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int a=9, b = 0; char *p ; int tmp=0; if(1>0?0:0){ printf("1>0 1\n"); } else { printf("1>0 0\n"); // 1>0 0 } if(1>0?++t 阅读全文
posted @ 2019-12-17 10:36 yushimeng 阅读(176) 评论(0) 推荐(0) 编辑
摘要: C++ 改成C语言接口时,build遇到错误如下: /usr/bin/ld: objs/addon/src/KeepAliveNotify.o: undefined reference to symbol '_ZNKSs5c_strEv@@GLIBCXX_3.4'/usr/local/lib64/l 阅读全文
posted @ 2019-12-12 14:06 yushimeng 阅读(2708) 评论(0) 推荐(0) 编辑
摘要: 参考文章:/jimodetiantang/p/9193858.html// 连续申请共享内存时,128字节是系统之前申请的。 ctx->sh:0x7fff6f4c8000 // 系统申请的80字节,实际占用128字节 8 p1:0x7fff6f4c9040, p2:0x7fff6f4c9048,p3:0x7fff6f4c9050,p4:0x7f... 阅读全文
posted @ 2019-10-31 11:14 yushimeng 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 结果自己试验,不贴。 首先用代码生成下代码: 然后生成了1K个宏定义,然后加点东西运行: 阅读全文
posted @ 2019-05-22 15:06 yushimeng 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 模块的init main configuration阶段时,用到的ngx_cycle是main函数的init_cycle(旧的),在main中init_cycle中会创建新的ngx_cycle, 之后再main中把新的cycle赋值给ngx_cycle全局变量。 而在initmain时,用的是旧的c 阅读全文
posted @ 2019-05-20 11:25 yushimeng 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: 1、ngx_pool_t ** ngx_get_pool()//use:getngx_pool_t **pool_address;ngx_pool_t *pool;pool_address = ngx_get_pool();pool = *pool_address;//use: freengx_fr 阅读全文
posted @ 2019-04-23 17:11 yushimeng 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页