ctemplate

  • 所有者: OlafvdSpek/ctemplate
  • 平台:
  • 許可證: BSD 3-Clause "New" or "Revised" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Welcome to the C++ CTemplate system!

This library provides an easy to use and lightning fast text templating system
to use with C++ programs.

It was originally called Google Templates, due to its origin as the template
system used for Google search result pages. Now it has a more general name
matching its community-owned nature.

Documentation

Refer to the Project
Documentation

to learn how to use the CTemplate system.

There is also a
HOWTO
and
Examples.

Compiling

To compile test applications with these classes, run ./autogen.sh && ./configure followed by
make on unixoid platforms like Linux or MacOSX.

To install these header files on your system, run make install.

See INSTALL for more details.

This code should work on any modern C++ system. It has been tested on Linux
(Ubuntu, Fedora, RedHat), Solaris 10 x86, FreeBSD 6.0, OS X 10.3 and 10.4, and
Windows under both VC++7 and VC++8.

There are a few Windows-specific details; see README.windows for more
information.

CTemplate and Threads

The ctemplate library has thread support, so it works properly in a threaded
environment.

For this to work, if you link libraries with -lctemplate you may also need to
add -pthread (or, on some systems, -pthreads, and on others, -lpthread) to
get the library to compile. If you leave out the -pthread, you'll see errors
like this:

symbol lookup error: /usr/local/lib/libctemplate.so.0: undefined symbol: pthread_rwlock_init

If your code isn't multi-threaded, you can instead use the ctemplate_nothread
library: -lctemplate_nothreads

To summarize, there are two ways to link in ctemlpate in non-threaded
applications. For instance:

  1. Thread safe build:gcc -o my_app my_app.o -lctemplate -pthread

  2. Unthreaded code:gcc -o my_app my_app.o -lctemplate_nothreads

If your application uses threads, you should use form (1).

主要指標

概覽
名稱與所有者OlafvdSpek/ctemplate
主編程語言C++
編程語言Shell (語言數: 9)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2015-03-12 17:28:39
推送於2023-09-02 15:33:06
最后一次提交2023-09-02 17:33:05
發布數29
最新版本名稱ctemplate-2.4 (發布於 )
第一版名稱ctemplate-0.1 (發布於 )
用户参与
星數357
關注者數21
派生數91
提交數161
已啟用問題?
問題數137
打開的問題數21
拉請求數9
打開的拉請求數6
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?