Coder Social home page Coder Social logo

tlibc's Introduction

TLibC

C语言常用函数库

  • platform 对Linux, Windows, Unix(Mac OSX)下的差异进行了非常简单的封装。
  • core 常用的数据结构如链表, hash表, 定时器等。
  • protocol 对xml, xlsx, mysql等数据的存取, 提供了统一的接口, 也支持类似于Thrift中Binary和Compact的数据格式。

项目依赖

  • 开启读取Excel表格的功能, 需要安装zlib
  • 开启读取mysql的功能, 需要安装mysql

安装方法

TLibC使用CMake作为构建工具, 支持Linux, Windows, Unix(Mac OSX)操作系统。

1.CMake生成工程文件

假设需要在build目录下生成工程文件, 源代码位于TLibC目录。

Linux/Unix:
    cd ./build
    cmake ../TLibC

Windows:
    打开CMake界面。
    点击Where is the source code栏目右侧的Browse Source选择TLibC目录。
    点击Where is the source code栏目右侧的Browse Build选择build目录。

CMake选项:

  • CMAKE_BUILD_TYPE 选择编译选项Debug|Release, Windows可以在Visual Studio里面选择。
  • CMAKE_INSTALL_PREFIX 指定安装路径。
  • TLIBC_INCLUDE_DIR 依赖包TLIBC的头文件目录。
  • WITH_RE2C 选项可以重新生成词法分析部分的代码, 需要安装 re2c

2.编译安装

Linux/Unix:
    make
    make install

Windows:
    打开build目录下的Visual Studio工程, 生成INSTALL项目。

教学

请参考tutorial目录下面的例子。

tlibc's People

Watchers

ywp110o avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.