摘要: 64位ubuntu编译32位程序 如上使用C4这个小工具时遇到来需要仿真32位系统的需求,发现使用-m32参数后,编译提示错误,如下: /usr/bin/ld: 未知的仿真模式: 32 支持的仿真: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1o 阅读全文
posted @ 2016-08-17 18:20 enginexpert 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 1.D-BUS 的内部工作方式 典型的D-BUS设置将由几个总线构成。将有一个持久的系统总线(system bus),它在引导时就会启动。这个总线由操作系统和后台进程使用,安全性非常好,以使得任意的应用程序不能欺骗系统事件。还将有很多会话总线(session buses),这些总线当用户登录后启动, 阅读全文
posted @ 2016-08-17 18:18 enginexpert 阅读(7259) 评论(0) 推荐(0) 编辑
摘要: 1、git代码提交的一般流程 git pull 远程主仓库 git commit 到本地仓库 git push到远程自己的仓库 在远程仓库上发送 mergeRequest请求 2、git 怎样删除远程仓库的某次错误提交 先使用 git reset --hard commit-id 恢复本地仓库 然后 阅读全文
posted @ 2016-08-17 18:14 enginexpert 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 6 pthread_mutex_t x; 7 pthread_cond_t cv; 8 static int s=0; 9 10 int rand_num[100]={0}; 11 int rd=0,wt=0; 12 13 void* threadConsumer(... 阅读全文
posted @ 2016-08-17 18:10 enginexpert 阅读(151) 评论(0) 推荐(0) 编辑