随笔分类 -  GCC

gdb make
makefile通用模板
摘要:########################################################### # # MAKEFILE FOR C/C++ PROJECT # Author: swm8023 <swm8023@gmail.com> # Date: 2014/01/30 # 阅读全文
posted @ 2020-04-06 09:16 yeahle 阅读(476) 评论(0) 推荐(0)
makefile常用函数
摘要:1、 subst函数 格式:$(subst <from>, <to>, <text>)功能:把字串<text>中的<from>字符串替换成<to>返回:函数返回被替换过后的字符串。 示例: $(subst a,the,There is a big tree) 把“There is a big tre 阅读全文
posted @ 2020-04-06 08:06 yeahle 阅读(253) 评论(0) 推荐(0)
/usr/bin/ld: cannot find -lxx
摘要:1. /usr/bin/ld: cannot find -lcrypto 2. /usr/bin/ld: cannot find -lssl sudo apt-get install libssl-dev 阅读全文
posted @ 2020-01-20 07:59 yeahle 阅读(229) 评论(0) 推荐(0)
declaration of 'void* operator new [](size_t)' has a different exception specifier
摘要:Are you using C++11 or later? The original operator new() declarations in C++98 throwing: void* operator new (std::size_t size) throw (std::bad_alloc) 阅读全文
posted @ 2020-01-20 07:39 yeahle 阅读(1390) 评论(0) 推荐(0)
线程的查看以及利用gdb调试多线程
摘要:1. 线程的查看 首先创建两个线程: #include <stdio.h> #include <unistd.h> #include <pthread.h> #include <stdlib.h> #include <string.h> void* pthread_run1(void* arg) { 阅读全文
posted @ 2020-01-12 09:02 yeahle 阅读(2858) 评论(0) 推荐(0)