Skip to content

yuasatakayuki/CxxUtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A header-only C++ utility class library.

Table of Contents

Install

Homebrew (recommended)

If you are using Homebrew package control system on Mac, you can easily install CxxUtilities via tap yuasatakayuki/hxisgd. Execute the following:

brew tap yuasatakayuki/hxisgd
brew install cxxutilities
In this case, the library will be installed to /usr/local/include/CxxUtilities (default location of Homebrew).

When newer version released, you can upgrade by just executing:

brew upgrade cxxutilities

Manual install using cmake

CxxUtilities can be installed using cmake. Execute the following:

download CxxUtilities zip archive from github
cd CxxUtilities
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/include
make install

This will install the library to /usr/local/include/CxxUtilities. If you would like to install other locations, modify CMAKE_INSTALL_PREFIX value.

Usage

Include the top-level header file in your source.

   #include "CxxUtilities/CxxUtilities.hh"
This will include all CxxUtilities files.

Since CxxUtilities requires C++11 compiler, set compiler options properly.

clang++

clang++ -std=c++11 -stdlib=libc++ yourApplication.cc -o yourApplication

gcc

g++ -std=c++11 yourApplication.cc -o yourApplication

If you installed CxxUtilities to non-default include path, you need to put an additional include path option like "-I/home/username/include".

Related information

CxxUtilities is used by SpaceWire RMAP Library, adcboxgui, Software SMU Simulator, and other projects.

Contact

  • Takayuki Yuasa (takayuki.yuasa@riken.jp)

About

A C++ class library containing utility functions.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages