记录暂时无法解决的崩溃问题: 正常运行时日志: (gdb) p query$5 = {<std::basic_ostream<char, std::char_traits<char> >> = {<No data fields>}, <mysqlpp::OptionalExceptions> = { ...
分类:
数据库 时间:
2020-04-23 13:51:57
阅读次数:
108
centos上编译报错,部分信息如下: /usr/local/lib/libprotobuf.so.9: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<c ...
分类:
其他好文 时间:
2019-11-13 11:17:22
阅读次数:
305
代码十分简单,通过对比vs,得知gcc调用的是ostream.tcc文件中的write函数write(const _CharT* __s, streamsize __n)。 vs中是定义在ostream文件中的write(const _Elem* _Str,streamsize _Count),gc ...
分类:
其他好文 时间:
2019-09-03 13:42:26
阅读次数:
141
d:\libpqxx-4.0\libpqxx-4.0\src\strconv.cxx(195): error C2440: “=”: 无法从“std::basic_istream<char,std::char_traits<char>>”转换为“bool”d:\libpqxx-4.0\libpqxx ...
分类:
其他好文 时间:
2018-09-26 10:15:25
阅读次数:
263
我在编译ligra是遇到了这个问题,网上搜了一遍,发现是了原因https://gcc.gnu.org/onlinedocs/libstdc%2B%2B/manual/using_dual_abi.html gcc5.4中C++11对一些变量的解析不太一样(表达不太好),比如,f std::list< ...
分类:
其他好文 时间:
2018-04-30 14:30:13
阅读次数:
5216
1 int xfun(int *a,int n) 2 { 3 int x = *a;//a的类型是int *,a+1跳动一个int的长度 4 for (int *pa = a + 1; pa < a + n; pa++)//指向同一个类型的指针比较大小,相减是两者之间的元素个数 5 { 6 //st ...
分类:
其他好文 时间:
2017-10-15 11:06:56
阅读次数:
206
本文实现了c++ STL中的basic_string模板类,当然。通过typedef也就实现了string类和wstring类。限于篇幅,实现代码中用到了标准库的char_traits模板类,本人自己也实现了 char_traits模板类,为此还写了一篇博客,在我的博客里能够找到,那里的代码全然能够 ...
分类:
编程语言 时间:
2017-06-01 13:50:11
阅读次数:
172
error LNK2019: 无法解析的外部符号 "public: static class log4cplus::Logger __cdecl log4cplus::Logger::getInstance(class std::basic_string<wchar_t,struct std::ch ...
分类:
其他好文 时间:
2017-03-15 18:44:47
阅读次数:
429
今天写代码遇到了这么一个链接错误:“已经在*.obj中定义”。 error LNK2005: "void __cdecl ReplaceWstringVar(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class ...
分类:
编程语言 时间:
2016-12-07 16:33:38
阅读次数:
200
本人写过与此相关的两篇博客,一个是<cstring>头文件的实现,还有一个是<cwchar>的实现。这里的char_traits模板类在此基础上实现。 为了方便。将源码一起封装于名字空间mystd里。 代码例如以下!!! // 此文件命名为 "char_traits.h" // vs2012 调试通
分类:
编程语言 时间:
2016-02-07 13:31:37
阅读次数:
196