
Linux
ChrisKyrie
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sGUI移植FrameBuffer
arm-linux-gcc编译器安装: https://blog.youkuaiyun.com/qq_42016265/article/details/81557079 2、qtcreator配置: https://blog.youkuaiyun.com/weixin_34353714/article/details/91985511 https://blog.youkuaiyun.com/qq_42145674/article/details/105176793 3、fremebuffer学习 https://blog.csdn.原创 2020-10-19 14:50:33 · 522 阅读 · 0 评论 -
Linux使用c++11thread类
g++ -g test.cpp -std=c++11 -lpthread原创 2020-10-13 15:35:23 · 583 阅读 · 0 评论 -
C++多线程交替打印奇数偶数
#include <iostream> #include <thread> #include <mutex> #include <condition_variable> using namespace std; mutex myMutex; condition_variable cv; bool flag = true; void threadFunction1 () { for (int i = 0; i<= 50 ;++i) { uni.原创 2020-10-13 14:50:01 · 720 阅读 · 0 评论 -
Linux下g++编译thread出错的的解决方法
错误如下图所示: 因为thread是C++11新加入的特性,所以我们在用g++编译的时候不能直接用,需要在g++后面加上 -std=c++0x -pthread 如果是gcc编译多线程的话则应该要用 gcc xxx.c -lpthread来编译,因为pthread并不是linux库里面的 标签:进程/线程,C/C++ ...原创 2020-10-03 17:14:33 · 798 阅读 · 0 评论 -
Linux中的fork用法
(1)fork()的定义 fork()函数是Unix中派生新进程的唯一方法,声明如下: #include<unistd.h> pid_tfork(void); 我们需要理解的是,调用一次fork()方法,该方法会返回两次。一次是在调用进程(也就是派生出的子进程的父进程)中返回一次,返回值是新派生的进程的进程ID。一次是在子进程中返回,返回值是0,代表当前进程为子进程。如果返回值为-1的话,则代表在派生新进程的过程中出错。 那么在程序中,我们就可以根据此返...原创 2020-07-06 14:53:37 · 6301 阅读 · 0 评论 -
Ubuntun换阿里镜像源
deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb http://mirrors.aliyun.com.原创 2020-06-04 16:22:17 · 520 阅读 · 0 评论 -
zip跟unzip
压缩文件: zip -r 文件名 ./* 解压文件: unzip 文件名原创 2020-05-14 08:37:03 · 177 阅读 · 0 评论 -
车牌识别Ubuntun下问题解决
问题1:类中函数变量static声明问题: https://www.it1352.com/485379.html 问题2:io.h找不到解决方法 https://www.cnblogs.com/gdut-gordon/p/9678175.html https://blog.youkuaiyun.com/lsq2902101015/article/details/51373911 问题3:找不到ope...原创 2020-04-13 18:19:47 · 269 阅读 · 0 评论