加载中
centos安装最新的gcc

yum install -y centos-release-scl yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++ # 安装了之后,并没有替换旧的,所以这里选择连接到最新的gcc/g++ scl enable devtoolset-9 bash ...

protobuf消息的自动派发

#define DECLARE_MESSAGE(x) case k##x##ID: /         {/           proto::x message;/           message.ParseFromIstream(&io);/          ...

2018/05/23 14:35
144
MSVC 版本号对应

http://blog.csdn.net/betteroneisme/article/details/52510607

2017/12/20 15:05
2.2K
cocos2dx sound bug

11-14 11:59:37.160 8298-10951/com.place.mahjong.place E/libOpenSLES: frameworks/wilhelm/src/android/AudioPlayer_to_android.cpp:412: pthread_mutex_lock_timeout_np returned 110 11...

2017/11/14 14:18
993
openssl dev lib

http://slproweb.com/products/Win32OpenSSL.html

2017/11/12 11:42
46
lua userdata metatable

.h #ifndef _lua_cus_data_type_ #define _lua_cus_data_type_ #include <limits.h> extern "C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h" } #define BITS_PER_WORD (...

2017/10/17 21:01
419
spdlog things

1 .my_logger.set_level(spdlog::level::off)

2017/09/26 20:23
115
android 根据已有keystore的debug.keystore 生成

1 - keytool -storepasswd -keystore ./hebmj.keystore 2 - keytool -changealias -keystore ./hebmj.keystore -alias hebmj -destalias androiddebugkey 3 - keytool -keypasswd -key...

2017/06/22 15:07
45
麻将

1.砸胡免杠 点炮者杠牌不算分 2.抢杠胡 - 别人碰牌,以后摸一张牌后,杠牌,别人正好胡此牌,此时胡牌,成为抢杠胡

2017/06/12 17:00
72
getopt

#getopt.h /* Getopt for Microsoft C This code is a modification of the Free Software Foundation, Inc. Getopt library for parsing command line argument the purpose was to provide...

2016/03/14 10:05
9
getopt

/* Getopt for Microsoft C This code is a modification of the Free Software Foundation, Inc. Getopt library for parsing command line argument the purpose was to provide a Microso...

2016/03/14 10:04
15
strerror_r

#define strerror_r(errno,buf,len) strerror_s(buf,len,errno)

2016/03/11 15:41
473
clock_gettime

int clock_gettime(int, struct timespec *spec) //C-file part { int64 wintime; GetSystemTimeAsFileTime((FILETIME*)&wintime); wintime -=116444736000000...

2016/03/11 15:39
50
ssize_t

Windows: typedef ULONG_PTR SIZE_T, *PSIZE_T; typedef LONG_PTR SSIZE_T, *PSSIZE_T;

2016/03/11 14:27
110
socklen_t

windows平台下: 头文件:#include<ws2tcpip.h> linux平台下: 下面两个头文件都有定义: 1)#include <sys/socket.h> 2)#include <unistd.h> 详细定义:typedef int socklen_t;...

2016/03/11 14:26
1.5K
gettimeofday

#ifdef OS_WINDOWS struct timeval { long tv_sec, tv_usec; }; // Based on: http://www.google.com/codesearch/p?hl=en#dR3YEbitojA/os_win32.c&q=GetSystemTimeAsFileTime%20license:b...

2016/02/01 19:42
338
visual studio 2013项目转换为2012

<PlatformToolset>v140</PlatformToolset> -- 2013 <PlatformToolset>v110</PlatformToolset> -- 2012 还有其他设置,...

2016/01/21 18:27
131
Linux错误代码含义/Linux Error Code

Linux错误代码含义/Linux Error Code

2014/12/13 10:50
315
大小端ENDIAN 的检测

1.通过预定义的宏来决定平台的大小端 // The wire format uses a little endian encoding (since that's efficient for // the common platforms). #if !defined(FLATBUFFERS_LITTLEENDIAN) ...

2014/09/23 10:28
110
对c++11支持检测宏

#if __cplusplus <= 199711L && \ (!defined(_MSC_VER) || _MSC_VER < 1600) && \ (!defined(__GNUC__) || \ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL_...

2014/09/23 10:24
803

没有更多内容

加载失败,请刷新页面

返回顶部
顶部