专注IT技能提升    手机版  
手机“扫一扫”
首页 |  IT技术 |  IT专题 |  iLife
rss |  网站导航
  • 清泛网
  • 关于我们
  • 免责申明
  • 联系我们
  • 手机版
  •  
  • IT搜索
  • 下载栏目
  • 图片栏目
  • 网站地图
  • IT技术
  • C/C++
  • 开源 & Github
  • 数据库(内核)
  • 大数据 & AI
  • 其他
  • IT专题

首页 > IT技术 > C/C++ > 列表
  • 原子vector的一种实现源码(atomic-vector)

    来自Facebook的一种实现,源码如下: * +----------------------------------------------------------------------+ | HipHop for PHP

    2022-03-01 09:50:37
    atomic vector folly
    查看评论 (0)
  • C++ Lock-free Hazard Pointer(冒险指针)

    1 Safe Reclamation MethodsFolly 的 Hazard Pointer 实现中有一段注释,详细描述了 C++ 里几种主流的安全内存回收方法,列表如下:优点缺点场景Locking易用读高开销

    2022-02-24 15:36:52
    hazard pointer atomic 冒险指针 lock-free folly
    查看评论 (0)
  • CPU指令集avx程序无法运行,运行崩溃

    原因就是CPU不支持相应的指令集导致的。Linux上使用 lscpu 命令查看CPU指令集,看是否支持。比如_mm256_cmpeq_epi64 这个函数需要avx2指令集,但是CPU不支持,就导致程序崩溃起不来。

    2022-02-17 17:09:36
    avx avx2
    查看评论 (0)
  • Intel SMID指令集编译错误: inlining failed in call to always_inline 'xxx': target specific option mismatch xxx

    最近在使用CPU指令集优化代码的时候,编译出错,报错如下: usr lib64 gcc x86_64-suse-linux 7 include avx2intrin h:252:1: error: inlining failed in call to always_i

    2022-02-17 16:55:06
    avx avx2
    查看评论 (0)
  • 【解决】This is allowed only when policy CMP0079 is set to NEW.

    cmake最低版本设置为3 13以上,可解决。cmake_minimum_required(VERSION 3 13) can fix the first problem 参考:https: gitlab kitware com cmake cmake - issues 19693

    2021-09-22 17:38:45
    cmake
    查看评论 (0)
  • 【解决】Missing FindPython3.cmake

    编译llvm时,报错:CMake Error at CMakeLists txt:729 (find_package): By not providing "FindPython3 cmake" in CMAKE_MODULE_PATH this project has asked

    2021-09-22 17:10:20
    cmake
    查看评论 (0)
  • 【解决】C、C++混合编译link失败问题

    C、C++混合编译时,C头文件不加 extern "C",函数按照C++编译会改变函数名称,导致link时报undefined reference to `xxx` 的 错误。加 extern "C" 解决,但是直接加的话

    2021-08-25 14:50:49
    混合编译
    查看评论 (0)
  • 【解决】double free or corruption (!prev)

    *** glibc detected *** cupd: double free or corruption (!prev): 0x093b1208 ***可能原因:1、多次释放同一内存区,需要检查代码,是否出现了对同一内存区释放两

    2021-08-06 16:14:07
    asan 内存跟踪
    查看评论 (0)
  • 【解决】munmap_chunk(): invalid pointer

    原因:new malloc出来的指针被覆盖掉了,然后delete free就会报这个错误。例如:char* word = (char*)malloc(10);word = "abc"; 应使用 strcpy(word, "abc");free(word)

    2021-08-06 15:55:13
    asan 内存跟踪
    查看评论 (0)
  • 【解决】asan runtime does not come first in initial library list

    报错信息:ASan runtime does not come first in initial library list; you should eitherlink runtime to your applicationor manually preload it with L

    2021-07-23 15:52:16
    asan 内存跟踪
    查看评论 (0)
  • namespace “std” has no member “clamp”

    error: ‘clamp’ is not a member of ‘std’namespace std has no member clampC++17特性,加编译选项 -std=c++17

    2021-07-06 16:49:48
    clamp
    查看评论 (0)
  • ‘std::tr1’ does not name a template type

    解决方法:添加头文件 if !defined(_MSC_VER) include <tr1 memory> endifC++ Technical Report 1 (TR1)是ISO IEC TR 19768, C++ Library Extensions(函式库扩充)的

    2021-07-06 14:12:47
    stl tr1
    查看评论 (0)
  • C++ protobuf使用入门实例

    protobuf 是结构化数据的系列化 反序列化解决方案,类似XML JSON,但他的运行效率及压缩率均较后者高一个数量级,且完全的跨平台。使用步骤如下:1、定义一个 proto数据结构文件

    2021-07-04 20:07:31
    protobuf
    查看评论 (0)
  • eclipse cdt 运行程序时添加依赖库路径

    我们知道Linux即使依赖库和可执行文件在同一目录下,如果不使用 LD_LIBRARY_PATH 指定库路径(即当前目录)的话,仍然会报加载不到依赖库的错误。那么Eclipse CDT也是类似,可

    2021-07-03 22:25:43
    eclipse cdt ld_library_path
    查看评论 (0)
  • 编译错误 error: ‘typeof’ cannot be used as a function

    编译一些开源的C项目,发现typeof关键字不能被识别,报错:error: &lsquo;typeof&rsquo; cannot be used as a function。解决方法:修改C编译选项 -std=gnu99,使用GNU99

    2021-07-01 11:28:58
    gcc gnu 编译错误
    查看评论 (0)
532条 上一页 1 2 3 4 5 6 7 8 9 10 ..36 下一页
栏目总排行
  • 1MFC学习总结 (90个技巧) dlg 上建立View
  • 2VS Addin插件基本开发入门
  • 3c++编译错误:invalid new-expression of abstract class type
  • 4google mock分享(全网最全最好的gmock文档,没有之一)
  • 5coinitialize失败,返回值是0x80010106 无法在设置线程模式后对其加以更改
  • 6C++使用OLE/COM高速读写EXCEL的源码
  • 7VS Addin插件配置、部署
  • 8CDHtmlDialog的基本使用(JS调用C++函数的实现)
  • 9ATL COM开发入门(一)(JS调用ActiveX/COM组件)
  • 10【解决】asan runtime does not come first in initial library list
栏目本月排行
  • 1【解决】asan runtime does n... 140次浏览
  • 2coinitialize失败,返回值是0x80... 65次浏览
  • 3use of deleted function st... 42次浏览
  • 4浅析Linux段错误:SEGV_MAPERR、SEGV_ACCERR 35次浏览
  • 5解决:参数 basepath 不能是相... 25次浏览
  • 6【解决】munmap_chunk(): invalid pointer 25次浏览
  • 7stl 字符串std::string作为std:... 20次浏览
  • 8Linux C++ 单元测试与gcov代码覆盖率统计 19次浏览
  • 9解决:warning C4293: “<<”:... 18次浏览
  • 10c++ ostream,ostringstream基... 18次浏览

关注
微信

关注官方微信

留言
反馈

顶部
关于我们  免责申明  法律申明  联系我们  网站地图  手机版 
© 2022 tsingfun.com, Inc.  沪ICP备2020034476号-1  沪公网安备31011702000040号