摘要:
如上申请方式导致错误 1. 尝试使用 static constexpr float floatvalue = 0.5f; 2. MyClass.h MyClass.cpp 可以解决如上问题 博客参考 https://stackoverflow.com/questions/17566575/how-t 阅读全文
摘要:
gtest是测试时调用的,把测试禁止掉试试 阅读全文
摘要:
1. https://www.mrpt.org/Building_and_Installing_Instructions#1_Prerequisites P1. error C2371: “int32_t”: 重定义;不同的基类型 或“int8_t” 解决办法:因为两个.h文件所定义的int32_t 阅读全文
摘要:
./configure 交叉编译,一般流程 结合我自己的编译工具,一般我的编译选项如下 具体configure支持那种设置可以通过如下指令查看 其他常见配置如下 阅读全文
摘要:
源文件内使用unordered_map时候,例如如下demo GCC版本大于或者等于4.9,会报如下错误 其实就是 Implicit conversion failure from initializer list 如下测试来自 :https://stackoverflow.com/question 阅读全文
摘要:
1. 下载源文件 https://github.com/google/glog 2. 源文件有CMakeLists.txt, 直接使用toolchain.cmake 直接编译就可以了,详情参考我的随笔 https://www.cnblogs.com/flyinggod/p/10148228.html 阅读全文