
c++
uuq
专注于中小企业信息化发展,在线式saas信息化服务
展开
-
谷歌av1编码 brew安装问题
Cloning https://aomedia.googlesource.com/aom.gitCloning into '/Users/***/Library/Caches/Homebrew/aom--git'...fatal: unable to access 'https://aomedia.googlesource.com/aom.git/': Failed to connect to aomedia.googlesource.com port 443: Operation timed out原创 2021-05-04 12:16:22 · 2052 阅读 · 1 评论 -
mac os 源码编译gcc10
../configure --build=x86_64-apple-darwin18 --prefix=/usr/local/Cellar/gcc/10.0.0 --libdir=/usr/local/Cellar/gcc/10.0.0/lib/gcc/10 --disable-nls --enable-checking=release --enable-languages=c,c++ --pro...原创 2020-04-25 22:28:21 · 897 阅读 · 0 评论 -
gcc 源码 编译错误
onfigure: error: source directory already configured; run "make distclean" there firstMakefile:5449: recipe for target 'configure-stage1-gmp' failedmake[2]: *** [configure-stage1-gmp] Error 1make[2...原创 2020-03-06 10:26:25 · 7623 阅读 · 3 评论 -
连接mysql5.7 使用 mysql-connector-c++-1.1.13
#include <iostream>#include <map>#include <string>#include <memory>#include "mysql_driver.h"#include "mysql_connection.h"#include "cppconn/driver.h"#include "cppconn/st...原创 2020-01-12 16:34:11 · 1779 阅读 · 0 评论 -
mysql 安装 xdevapi mysqlx plugin
mysql> INSTALL PLUGIN mysqlx SONAME 'mysqlx.so';show plugins;原创 2020-01-02 14:07:35 · 1341 阅读 · 0 评论 -
mac os 汇编helloworld
hzq$ nasm -f macho64 -o helloworld aa.asmhzq$ ld -o helloworld.o -e _start helloworldld: warning: No version-min specified on command lineld: dynamic main executables must link with libSystem.dyl...原创 2019-03-02 18:48:06 · 2526 阅读 · 0 评论 -
boost mac os project-config.jam g++-8编译
#if ! gcc in [ feature.values <toolset> ]#{# using gcc ;#}#project : default-build <toolset>gcc ;using gcc : 8.3 : /usr/local/Cellar/gcc/8.3.0_1/bin/g++-8 ;或using gcc : 9.1 : ...原创 2019-06-11 14:47:20 · 670 阅读 · 0 评论 -
c++ 读写excel xlsx 文件
https://github.com/brechtsanders/xlsxio需要安装Minizip原创 2019-06-18 13:51:11 · 7442 阅读 · 0 评论 -
freetype2中文获取方式
ch=L'领'; //设置编码 FT_Select_Charmap(face, FT_ENCODING_UNICODE); FT_UInt gindex = FT_Get_Char_Index(face, ch); std::cout<<"offset:"<<gindex<<std::endl; if (FT_Lo...原创 2019-07-21 19:26:12 · 1634 阅读 · 0 评论 -
mac os g++ mysql-connector-c++ mysql
参考这个http://www.cnblogs.com/joeblackzqq/p/4332945.html#include <iostream>#include <map>#include <string>#include <memory>#include "mysql_driver.h"#include "mysql_conne...原创 2018-11-12 22:29:50 · 1066 阅读 · 0 评论 -
Undefined symbols for architecture x86_64: 编译出错
Undefined symbols for architecture x86_64: 编译出错其实是mac os xcode 带的c++标准库问题,如果还是老的库就会出错,要升级xcode,或用最新c++库前阵子编译php mysql就遇到这个问题,后来升级xcode后一路编译顺利。 ...原创 2018-10-26 10:19:27 · 4045 阅读 · 0 评论 -
c++ string split分割字符串
c++原生好像没有split分割字符串内置函数#include #include #include #include #include #include #include #include using namespace std;vector split(string &str,string sp){ vector split; //string sp="age原创 2017-12-03 16:19:30 · 2782 阅读 · 0 评论 -
bind 配置记录
yum install bind bind-libs bind-chroot 或yum install bind-chroot bind -yrndc-confgen -r /dev/urandom -a service named restartoptions { listen-on port 53 { 你服务器ip; }; li原创 2017-12-06 23:13:02 · 903 阅读 · 0 评论 -
mac os 安装opencv 3.4.0 FFmpeg xcode 编译
今天安装下opencv,在官方下载最新版,我们先安装FFmpeg 安装FFmpeg之前也先安装音频解码 http://www.audiocoding.com/downloads.html下载这两个 注意,我最新版mp3lame编译没有通过,用3.99版对不熟linux同学可能比较陌生,现在linux很少有人手工编译安装了。如果你是64位可以取消i386 不然会报错,我原创 2018-01-05 22:34:56 · 2340 阅读 · 1 评论 -
makefile 文件中取得被包含的文件的目录
有些项目共用一个公共makefile文件就会出问题,内部变量会随着谁包含就是谁的当前目录信息当被几个不同目录包含时候,我们需要一个绝对目录,就是文件当前目录$(abspath $(lastword $(MAKEFILE_LIST))) 是获得当前包含文件全路径#SELF_FILE=$(abspath $(lastword $(MAKEFILE_LIST)))$(dir filespath) 取回目...原创 2018-05-20 14:36:16 · 3490 阅读 · 0 评论 -
c++ 直接常量字符赋值
warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]直接 加下char * argv[1]=(char*)"1.jpg";可以消除这个警告。。...原创 2018-05-08 11:04:41 · 1333 阅读 · 0 评论 -
mac os下st-flash写不进固件
Short the BOOT0 pin with VDDReset the boardst-flash erase网上这样说可以。 st-flash write build/iic.bin 0x080000002018-05-25T15:39:51 INFO common.c: Loading device parameters....2018-05-25T15:39:51 WARN common...原创 2018-05-25 15:58:23 · 2450 阅读 · 1 评论 -
multiple definition of `NMI_Handler' stm32CubeMX 生成gcc编译出错
multiple definition of `NMI_Handler'还有其它提示重复的,请检查下Makefile文件里面 是不是重复了c源文件 我的不知为何生成Src/stm32f1xx_it.c \这一行和main.c重复C_SOURCES = \Src/main.c \/Src/system_stm32f1xx.c \Src/stm32f1xx_it.c \Drivers/STM32F1...原创 2018-05-23 21:29:07 · 1659 阅读 · 0 评论 -
stm32f103 rcc时钟寄存器设置和usart寄存器
这几天把rcc时钟搞明白了。其实主要是流程 看错了计算器1到31位,结果是错位了,一直找不到原因。原来mac 自带编程计算器也是从0到31stm32中文手册讲得比较明白自己摸索下设置了串口发送数据自己用的是蓝色药丸 (blue pill )淘宝10块不到一小块 stm32f103c8t6led灯是portc 13脚本程序全部是用寄存器方式设置#include "stm32f10x_lib.h"#...原创 2018-07-06 23:37:18 · 2653 阅读 · 0 评论 -
gdb调试 mac os
安装好 gdb 后 (please check gdb is codesigned - see taskgated(8))表示没有签名,需要签名才能调试,因为gdb没有权限调试别的进程方法 launchpad 其它 钥匙串访问 菜单 创建 证书助理 可以 看http://blog.youkuaiyun.com/liangguangchuan/article/details/548原创 2017-11-22 23:04:54 · 267 阅读 · 0 评论