🍺 BREW Explorer

← all formulae

ctemplate

brew install ctemplate v2.4_1 BSD-3-Clause

Template language for C++

3
30-day installs · #12132
8
90-day · #13066
23
365-day · #13709
368
★ GitHub stars · updated 7mo ago

Build dependencies

GitHub topics

c-plus-plus ctemplate

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "autoconf",
    "automake",
    "libtool"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Template language for C++",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:44+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "ctemplate",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-01-22T13:20:52Z",
  "github_readme_excerpt": "# Welcome to the C++ CTemplate system!\n\nThis library provides an easy to use and lightning fast text templating system\nto use with C++ programs.\n\nIt was originally called Google Templates, due to its origin as the template\nsystem used for Google search result pages. Now it has a more general name\nmatching its community-owned nature.\n\n## Documentation\n\nRefer to the [Project\nDocumentation](\u003chttps://htmlpreview.github.io/?https://github.com/OlafvdSpek/ctemplate/blob/master/doc/index.html\u003e)\nto learn how to use the CTemplate system.\n\nThere is also a\n[HOWTO](\u003chttps://htmlpreview.github.io/?https://raw.githubusercontent.com/OlafvdSpek/ctemplate/master/doc/howto.html\u003e)\nand\n[Examples](\u003chttps://htmlpreview.github.io/?https://raw.githubusercontent.com/OlafvdSpek/ctemplate/master/doc/example.html\u003e).\n\n## Compiling\n\nTo compile test applications with these classes, run `./autogen.sh \u0026\u0026 ./configure` followed by\n`make` on unixoid platforms like Linux or MacOSX.\n\nTo install these header files on your system, run `make install`.\n\nSee INSTALL for more details.\n\nThis code should work on any modern C++ system. It has been tested on Linux\n(Ubuntu, Fedora, RedHat), Solaris 10 x86, FreeBSD 6.0, OS X 10.3 and 10.4, and\nWindows under both VC++7 and VC++8.\n\nThere are a few Windows-specific details; see the [Windows README](README_windows.txt)\nfor more information.\n\n## CTemplate and Threads\n\nThe ctemplate library has thread support, so it works properly in a threaded\nenvironment.\n\nFor this to work, if you link libraries with `-lctemplate` you may also need to\nadd `-pthread` (or, on some systems, `-pthreads`, and on others, `-lpthread`) to\nget the library to compile. If you leave out the `-pthread`, you\u0027ll see errors\nlike this:\n\n```\nsymbol lookup error: /usr/local/lib/libctemplate.so.0: undefined symbol: pthread_rwlock_init\n```\n\nIf your code isn\u0027t multi-threaded, you can instead use the `ctemplate_nothreads`\nlibrary: `-lctemplate_nothreads`.\n\nTo summarize, there are two ways to link in ctemplate",
  "github_repo": "olafvdspek/ctemplate",
  "github_stars": 368,
  "github_topics": [
    "c-plus-plus",
    "ctemplate"
  ],
  "homepage": "https://github.com/olafvdspek/ctemplate",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 3,
  "installs_365d": 23,
  "installs_90d": 8,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "ctemplate",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 12132,
  "rank_365d": 13709,
  "rank_90d": 13066,
  "raw_hash": "480e85e28c7c1510",
  "recommended_dependencies": [],
  "revision": 1,
  "ruby_source_path": "Formula/c/ctemplate.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "python": "build"
    }
  ],
  "version_head": "HEAD",
  "version_stable": "2.4",
  "versioned_formulae": [],
  "why_use_this": null
}