在程序开发过程中遇到了这样的问题:
程序比较大,因而拆分成了若干个静态库:
程序运行时崩溃。
经过调试发现,程序本身、和它所依赖的动态库里,有同名的全局变量,Loader 表示很凌乱。。
I get a compile error of the iterator when porting an application which is based on the C++ standard library. Someone get the same issue before, and there is already an answer at http://stackoverflow.com/questions/2135094/gcc-reverse-iterator-comparison-operators-missing.
栈上消耗的内存太多,导致溢出,程序崩溃。
1. CPU 执行代码时,反复地压栈;
2. 访问栈上内存时 …使用 grep 搜索,比如:
$ cat a.txt | grep -a "word"
在输出结果里,匹配到的字符会通过颜色高亮显示,方便定位;
但如果输出结果比较多 …
使用读写锁时,同一时刻可以有多个读锁占用,但只能有一个写锁占用。
使用 pthread 多线程时,需要考虑如果持续地有多个线程 …
0x00
markdown 里的 Ordered Lists 语法是这样的:
1. First item
2. Second item
3. Third item
4. Fourth item
虽然以下写法也是允许的,并且渲染的结果是一样的:
1. First item
1 …