<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Yoo趣儿 - C++</title>
    <link>https://yooqur.com/forum/53/1</link>
    <description>Latest 20 threads of C++</description>
    <copyright>Copyright(C) Yoo趣儿</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 14 May 2026 02:24:15 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://yooqur.com/static/image/common/logo_88_31.gif</url>
      <title>Yoo趣儿</title>
      <link>https://yooqur.com/</link>
    </image>
    <item>
      <title>请教各位 centos 7.9 通过 devtoolset 启用 c++14/17 时遇到的链接问题</title>
      <link>https://yooqur.com/thread/719720-1.html</link>
      <description><![CDATA[这是一个 Linux c++ 程序，编译和部署均在 centOS 7.9/gcc 4.8.5 的环境上。这个程序需要对接多种证券交易柜台提供的交易 sdk （头文件和动态库），这些动态库大多是 gcc 4.8.5 编译出来的。根据 cmake 配置，程序在编译期决定最终链接哪种交易 sdk 的动态库，完成编译 ...]]></description>
      <category>C++</category>
      <author>Noicdi</author>
      <pubDate>Wed, 01 Apr 2026 07:12:22 +0000</pubDate>
    </item>
    <item>
      <title>求大佬指点:Windows 上 c++部署最新 Paddleocr,无法通过内存识字</title>
      <link>https://yooqur.com/thread/712997-1.html</link>
      <description><![CDATA[都是官方的代码,只能路径识图,改成内存加载图片后:
        cv::Mat img = cv::imread(png_path);
        if (img.empty()) {
            std::cerr \&quot; 的成员
    1&gt;D:\\Program Files (x86)\\opencv\\build\\include\\opencv2\\core\\traits.hpp(386,31): error ]]></description>
      <category>C++</category>
      <author>DearFox</author>
<enclosure url="https://yooqur.com/data/attachment/forum/C2065: “ ..." length="" type="image/jpeg" />      <pubDate>Sun, 25 Jan 2026 11:50:15 +0000</pubDate>
    </item>
    <item>
      <title>分享一下我个人开源的 C++23 协程网络框架</title>
      <link>https://yooqur.com/thread/707546-1.html</link>
      <description><![CDATA[https://github.com/Hackerl/asyncio
asyncio 是一个基于 libuv 的协程网络框架，使用 C++23 开发，支持 Linux/Windows/Android/macOS 四个主流平台。
它绝不是一个玩具，而是可以真正用于生产的代码。在我公司内部，基于它研发的软件，已运行在了数万台员工的办公 PC  ...]]></description>
      <category>C++</category>
      <author>Hackerl</author>
      <pubDate>Thu, 04 Dec 2025 17:52:57 +0000</pubDate>
    </item>
    <item>
      <title>为什么写 C++的人年龄偏大？</title>
      <link>https://yooqur.com/thread/707534-1.html</link>
      <description><![CDATA[C++什么会得到像我这样老年人的喜爱？
首先 C++这个语言表达力及其丰富，以至于初学者不知所措，经常会看到不认识的语法，这是在其它语言不太会经历到的。 但是它所有的复杂性都服务于一个目标，抽象(abstraction)。抽象是一个高级的思考过程，它试图从杂乱无章中找到模 ...]]></description>
      <category>C++</category>
      <author>jianglibo</author>
      <pubDate>Thu, 04 Dec 2025 17:50:43 +0000</pubDate>
    </item>
    <item>
      <title>mac clion 调试怎么才能看到 stl 容器的值</title>
      <link>https://yooqur.com/thread/676076-1.html</link>
      <description><![CDATA[[*]mac 不维护 gdb ，不想手动配置特定版本；默认使用 libc++，我改成 libstdc++,

set(CMAKE_CXX_FLAGS \&quot;${CMAKE_CXX_FLAGS} -stdlib=libstdc++ -I/opt/homebrew/Cellar/gcc/13.2.0/include/c++/13.2.0 -I/opt/homebrew/Cellar/gcc/13.2.0/include/c++/13.2.0/aarch6 ...]]></description>
      <category>C++</category>
      <author>rednose1037</author>
      <pubDate>Sat, 01 Feb 2025 03:01:02 +0000</pubDate>
    </item>
    <item>
      <title>有没有合适开源的 C++项目可以快速实现一些功能</title>
      <link>https://yooqur.com/thread/674832-1.html</link>
      <description><![CDATA[一个简单但可靠的 linux C++服务端：
1 ，通过 http 或者 tcp 接收客户端发过来的 json 格式的数据
2 ，支持解析、修改 json 格式的数据，根据 json 里某些字段的内容，去数据库再去查一些信息，补充进 json 数据中
3 ，将这些 json 格式的数据保存在任务队列中，支持根 ...]]></description>
      <category>C++</category>
      <author>winskyme</author>
      <pubDate>Sat, 25 Jan 2025 16:01:45 +0000</pubDate>
    </item>
    <item>
      <title>cmake + googletest 的目录结构最佳实践是？</title>
      <link>https://yooqur.com/thread/674302-1.html</link>
      <description><![CDATA[目前看到有几种做法：
[ol]
[*]测试代码在源码中，通过宏区分编译。
[*]测试代码在工程目录下的 test 文件夹中，引入被测的源文件编译测试。
[*]把被测代码编译成静态库，在顶层目录下有个 tests 文件夹，链接静态库测试。
[/ol]
各位怎么组织的？ ...]]></description>
      <category>C++</category>
      <author>aqtata</author>
      <pubDate>Tue, 14 Jan 2025 01:00:59 +0000</pubDate>
    </item>
    <item>
      <title>在公司电脑上安装 QT 用于学习可以不？</title>
      <link>https://yooqur.com/thread/671495-1.html</link>
      <description><![CDATA[在公司电脑上安装 QT,电脑会连接公司电脑，主要用于学习和个人乱写软件使用，不盈利，会收到信件么？]]></description>
      <category>C++</category>
      <author>octalempyrean</author>
      <pubDate>Thu, 19 Dec 2024 15:00:47 +0000</pubDate>
    </item>
    <item>
      <title>用 C++ lambda 太爽了</title>
      <link>https://yooqur.com/thread/660561-1.html</link>
      <description><![CDATA[写 GUI 经常碰到需要使用 callback 来描述 event 发生时的 behavior ，在 callback 函数里面不可避免的要使用到某些变量，之前不用 lambda 需要把 callback 内引用的变量都作为全局变量，现在用了 lambda 之后可以直接变量捕捉，在 class method 内也能捕获 this 指针， ...]]></description>
      <category>C++</category>
      <author>zhuyongqi9</author>
      <pubDate>Wed, 20 Nov 2024 08:03:09 +0000</pubDate>
    </item>
    <item>
      <title>如何保证一个成员函数在另一个成员函数之前获得 mutex?</title>
      <link>https://yooqur.com/thread/660366-1.html</link>
      <description><![CDATA[假设有个类的两个成员函数，需要在不同的线程里执行，这两个成员函数需要写入同一个文件，因此需要使用 mutex 确保这两个函数不会同时写，代码类似这样
class Widget{
public:
    void funA();
    void funnB();
private:
    std::mutex mutex;
};
void Widget::funA ...]]></description>
      <category>C++</category>
      <author>LcDraven</author>
      <pubDate>Tue, 19 Nov 2024 09:01:37 +0000</pubDate>
    </item>
    <item>
      <title>请教一个 C++性能问题</title>
      <link>https://yooqur.com/thread/657491-1.html</link>
      <description><![CDATA[对于两个转置运算，两种的性能明显不一样，是为什么呢？
我电脑的输出是：
0.0473308
0.0265206
#include 
#include 
int main(void)
{
    int I = 100;
    int J = 200;
    int K = 300;
    
    int idealI = 105;
    // i j k
    int* arr = new int;
    for  ...]]></description>
      <category>C++</category>
      <author>wisefree</author>
      <pubDate>Fri, 08 Nov 2024 14:02:22 +0000</pubDate>
    </item>
    <item>
      <title>C++ 新手问下有没有办法链式定义一个类</title>
      <link>https://yooqur.com/thread/648195-1.html</link>
      <description><![CDATA[比如说我先定义一个单项式类为这种形式：
a * pow(p, n) * pow(q, m)
其中 a, m, n 都是整数，p 和 q 是两个字符，然后现在我想定义操作一个更复杂的类，就是一般所说的多项式，但是它要满足我添加一个单项式进来之后仍然还是一个多项式的要求。。
 ...]]></description>
      <category>C++</category>
      <author>BRS5672023</author>
      <pubDate>Mon, 21 Oct 2024 07:02:11 +0000</pubDate>
    </item>
    <item>
      <title>atomic&amp;lt;shared_ptr&amp;lt;T&amp;gt;&amp;gt;在 GCC 和 Clang 的受支持程度真是一言难尽</title>
      <link>https://yooqur.com/thread/647878-1.html</link>
      <description><![CDATA[Clang 到现在都不支持atomic&gt;，只能继续 atomic_load() 和 atomic_store()。一旦要用 weak_ptr 则如同残废，不支持atomic_load()和 atomic_store()。
GCC 12.2 及旧版本有“bug”（ P0718R2 的疏忽），刚好 Debian 12 自带的 GCC 就是 12.2 ，直接完蛋。
这段代码在 Deb ...]]></description>
      <category>C++</category>
      <author>cnbatch</author>
      <pubDate>Sun, 20 Oct 2024 09:02:14 +0000</pubDate>
    </item>
    <item>
      <title>C++ 新手想问下关于 Linux 下如何实现类似 Windows 的 Pause 功能的问题</title>
      <link>https://yooqur.com/thread/647318-1.html</link>
      <description><![CDATA[最近几天看了一点黑马程序员的视频（没什么基础），试着跟着写了一下实现通讯录管理的代码（暂时只完成了一部分功能），想要在 Linux 系统下实现类似 Windows 里 system(\&quot;pause\&quot;) 的功能，比如在通讯录中写完一个联系人的信息或者显示一个联系人的信息的时候能够 Pause  ...]]></description>
      <category>C++</category>
      <author>BRS5672023</author>
      <pubDate>Fri, 18 Oct 2024 13:00:53 +0000</pubDate>
    </item>
    <item>
      <title>C++项目分布式存储上的编译问题</title>
      <link>https://yooqur.com/thread/647178-1.html</link>
      <description><![CDATA[最近在做 webide 相关的开发，C++的开发人员反馈编译环节有问题，目前已出现的报错都是
can\'t write xxx bytes to section xxxxxx
然后物理机上 docker 跑的 ide 就没啥问题，我怀疑问题还是使用 nfs 上的问题，所以上诉的错误一般是由什么产生的？有没有进一步的排查方 ...]]></description>
      <category>C++</category>
      <author>chen0520</author>
      <pubDate>Fri, 18 Oct 2024 07:03:35 +0000</pubDate>
    </item>
    <item>
      <title>cmake 交叉编译有大佬懂吗？</title>
      <link>https://yooqur.com/thread/641852-1.html</link>
      <description><![CDATA[c++新手，之前写 java 和 go 的。目前使用 cmake + vcpkg 在 Linux 开发。我现在想在在 Linux 环境生产 Windows/mac/linux 等操作系统下的可执行文件。可以完成吗？
现在只考虑最简单一个程序 hello world, 没有第三方依赖。如何操作。。。
 ...]]></description>
      <category>C++</category>
      <author>cohen121</author>
      <pubDate>Tue, 01 Oct 2024 11:01:18 +0000</pubDate>
    </item>
    <item>
      <title>mingw 具体做了什么？</title>
      <link>https://yooqur.com/thread/637660-1.html</link>
      <description><![CDATA[我们知道编译器通常由三部分组成: 前端、中间表示(优化器)、后端
对于 mingw, 我的理解：
[ol]
[*]
mingw 使用了 gcc 的编译器前端和 IR 优化
[*]
mingw 后端生成了符合 COFF 规范的 obj 文件， 而传统的 gcc 在 linux 平台下生成的是符合 elf 规范的 .o 文件
[/ol]
我 ...]]></description>
      <category>C++</category>
      <author>ckr2002</author>
      <pubDate>Wed, 18 Sep 2024 10:02:48 +0000</pubDate>
    </item>
    <item>
      <title>VSCode 打开大型 C/C++项目 CPU 占用 100%还残留进程，有办法缓解吗？</title>
      <link>https://yooqur.com/thread/630167-1.html</link>
      <description><![CDATA[如题，用 VSCode 打开一个大型的 C/C++项目，比如 Chromium/Linux Kernel 这种级别的，右下角一直在那转，尝试索引啥的，这时 cpptools 进程会吃满一个或两个 CPU 核心。
更恶心的是，关闭 VSCode 之后（尤其是用 SSH 连接的情况下），这一两个吃满 CPU 的进程并不会退 ...]]></description>
      <category>C++</category>
      <author>liyafe1997</author>
      <pubDate>Mon, 02 Sep 2024 20:00:29 +0000</pubDate>
    </item>
    <item>
      <title>求教个 C++ Get 函数怎么写的问题</title>
      <link>https://yooqur.com/thread/615217-1.html</link>
      <description><![CDATA[代码
#include
#include 
#include 
enum struct Status {
    kOk = 0,
};
struct Student {
    std::string name;
    std::size_t age;
};
class Table {
   public:
    Table() {
        this-&gt;map_.insert(std::make_pair(\&quot;w1\&quot;, Student(\]]></description>
      <category>C++</category>
      <author>Betsy</author>
      <pubDate>Wed, 07 Aug 2024 17:00:38 +0000</pubDate>
    </item>
    <item>
      <title>请 C++大佬帮我看下这个 crash 是什么原因，请你喝杯茶</title>
      <link>https://yooqur.com/thread/566695-1.html</link>
      <description><![CDATA[这个是报错的 dmp 文件和 text
http://103.40.253.229:39118/down/JHOd1Xo3GNZM.dmp
http://103.40.253.229:39118/down/zeQ88qx5xyiV.txt]]></description>
      <category>C++</category>
      <author>yuzhixin411416</author>
      <pubDate>Thu, 20 Jun 2024 23:00:16 +0000</pubDate>
    </item>
  </channel>
</rss>