摘要:
#include <time.h> #include<sys/timeb.h> #ifdef WIN32 #include<Windows.h> #else #include<stdint.h> #include<sys/time.h> #endif #include"boost/chrono.hp 阅读全文
posted @ 2021-02-23 17:47
码农er
阅读(106)
评论(0)
推荐(0)
摘要:
#ifndef G_DECL_EXPORT #ifdef WIN32 #define G_DECL_EXPORT __declspec(dllexport) #else #define G_DECL_EXPORT __attribute__((visibility("default"))) #end 阅读全文
posted @ 2021-02-23 16:21
码农er
阅读(165)
评论(0)
推荐(0)
摘要:
#include <inttypes.h> typedef int8_t int8; //<有符号 1字节 typedef uint8_t uint8; //无符号 1字节 typedef uint8_t byte; //< 无符号 1字节 typedef int16_t int16;//有符号 2 阅读全文
posted @ 2021-02-23 15:59
码农er
阅读(120)
评论(0)
推荐(0)
摘要:
linux-g++*{ DEFINES +=OS_LINUX #gcc默认为导出所有符号,此处修改为默认不导出,和msvc行为一致,原因如下: #1.避免不必要的冲突。导出的符号载入到进程的全局符号表,如果同名符号已存在则直接使用已存在的符号,可能导致调用到错误地址 #2.影响编译和运行时加载速度 阅读全文
posted @ 2021-02-23 14:57
码农er
阅读(401)
评论(0)
推荐(0)
浙公网安备 33010602011771号