摘要:
#ifndef G_DECL_EXPORT #ifdef WIN32 #define G_DECL_EXPORT __declspec(dllexport) #else #define G_DECL_EXPORT __attribute__((visibility("default"))) #end 阅读全文
摘要:
#include <inttypes.h> typedef int8_t int8; //<有符号 1字节 typedef uint8_t uint8; //无符号 1字节 typedef uint8_t byte; //< 无符号 1字节 typedef int16_t int16;//有符号 2 阅读全文
摘要:
linux-g++*{ DEFINES +=OS_LINUX #gcc默认为导出所有符号,此处修改为默认不导出,和msvc行为一致,原因如下: #1.避免不必要的冲突。导出的符号载入到进程的全局符号表,如果同名符号已存在则直接使用已存在的符号,可能导致调用到错误地址 #2.影响编译和运行时加载速度 阅读全文