Skip to content
/ CPPX Public

Linux-only C++ shared library under development, providing utility functions beyond the STL. Easy to build with CMake or use precompiled `.so` and header files.

License

Notifications You must be signed in to change notification settings

IFKabir/CPPX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPX

CPPX is currently a Linux-only C++ shared library that implements utility functions complementing the STL for GNU toolchains.

Requirements

  • Linux distribution
  • GNU-compatible C/C++ compiler
  • CMake
  • git

Install dependencies

  • Ubuntu/Debian
sudo apt update
sudo apt install build-essential cmake git
  • Fedora/RHEL
sudo dnf install cmake git
  • Arch Linux
sudo pacman -S cmake git

Building CPPX

Option A (Recommended for Minimal Hassle)

Use precompiled .so & .h

  1. Download the lib-cppx.so file from the /build/bin directory and the cppx.h file from the /include directory, then move them to the folder where you plan to compile your C++ source file.
CPPX/
├── build/
│   └── bin/
│       └── lib-cppx.so
├── include/
    └── cppx.h

Option B (You are on your own now)

Build from source .so & .h

  1. Clone the repository and enter the project root.
git clone [email protected]:IFKabir/CPPX.git
cd CPPX
  1. Create a build directory and configure with CMake.
mkdir -p build && cd build
cmake ..
  1. Build the shared library.
make
  1. You now can find .so file and .h file in
CPPX/
├── build/
│   └── bin/
│       └── lib-cppx.so
├── include/
    └── cppx.h

Run

  1. Copy both lib-cppx.so and header.h into the same directory as your yourFile.cpp.

  2. Include header.h file in your cpp file using #include "header.h".

  3. With your file named yourFile.cpp run the following command making sure that lib-cppx.so is in the same directory as the executable when you run it.

g++ -std=c++17 yourFile.cpp \
    ./lib-cppx.so \
    -Wl,-rpath=. \
    -o app
  1. Run the generated executable
./app

Usage

  • See the corresponding release that was published.

About

Linux-only C++ shared library under development, providing utility functions beyond the STL. Easy to build with CMake or use precompiled `.so` and header files.

Topics

Resources

License

Stars

Watchers

Forks