c++基础库, 使用scons进行编译构建, scons兼容了Mac和Ubuntu SConstruct根据不同的平台设置不同的编译参数,进行编译
- Mac
1). build: scons -i -Q -j4 2> /dev/null
编译会有一些没有用的Warn去不掉,直接从定向到/dev/null
2). 要求g++ 4.8,Mac系统默认为4.2在编译的时候会报找不到一些符号
3). clean: scons -c
- Linux
- c++ 基础库
- email: cgl1079743846@gmail.com
a. common.h
b. config.h
c. argvContext.h
d. localVector.h
e. stdExtention.h
a. log.h
b. loggerUtil.h
a. fileLock.h
b. fileUtil.h
a. mysqlClient.h
a. thread.h
b. threadPool.h
c. mutexLock.h
google unit test基础库
1. gtest library build
1). git clone https://github.com/google/googletest.git googletest
2). cd googletest/googletest
3). mkdir build
4). cd build
5). cmake ..
6). make
7). cp libgtest* cpp_util/gtest/lib_32
or
cp libgtest* cpp_util/gtest/lib_64