摘要: class A { public: A():aa(42) { std::cout <<"My aaa=> uninitialize:" aaa << std::endl; aaa = aa; std::cout <<"My aaa=> " aaa << std::endl; } private: l 阅读全文
posted @ 2021-08-17 09:39 uttep 阅读(1376) 评论(0) 推荐(0)
摘要: ** 详情见注解 #include <iostream> #include <list> #include <map> #include <cstring> #include <iostream> #include <memory> #include <functional> #include <b 阅读全文
posted @ 2021-08-13 14:20 uttep 阅读(49) 评论(0) 推荐(0)
摘要: Linux让你对系统有全面的掌控,这并不是所有人都会这么认为,但是厉害的人都喜欢全面掌控的感觉。我将会向你展示一些基础技巧,这些技巧能极大的影响大多数程序的行为,不仅仅是好玩,而且有用。 一个简单的例子 先玩玩,原理后面再聊。 random_num.c #include <stdio.h> #inc 阅读全文
posted @ 2021-05-13 10:37 uttep 阅读(330) 评论(0) 推荐(0)
摘要: 关于inline对链接时的影响 问题: 在分别编译以下代码成目标文件,然后链接成静态库(.a)报错undefined reference.. iusk@wgnmd:~/Documents/Bitusk/testing$ g++ -static testError.o ../src/Error.o / 阅读全文
posted @ 2021-05-05 14:10 uttep 阅读(748) 评论(0) 推荐(0)
摘要: Linux 指定动态链接库路径 问题: 想要指定运行时搜索的动态链接库目录。 g++ -Lpath -llibname 仅仅只能指定好编译时所依赖的库,不能在运行时找到所指定的目录。 解决: g++ -Wl,-rpath,linkpath 可以通过g++来使用linker的命令参数。 g++ -wl 阅读全文
posted @ 2021-03-30 13:38 uttep 阅读(2573) 评论(0) 推荐(0)