Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Project516/c-calc/llms.txt

Use this file to discover all available pages before exploring further.

c-calc has no pre-built binaries — you build it from source using GCC and make. This page walks you through installing GCC on your platform, cloning the repository, and compiling the binary.

Prerequisites

You need:
  • GCC — the GNU Compiler Collection
  • make — a build tool (usually installed alongside GCC or development tools)
  • git — to clone the repository
1

Install GCC

Install GCC for your operating system.
On Debian/Ubuntu-based distributions:
sudo apt update && sudo apt install build-essential
On Fedora/RHEL-based distributions:
sudo dnf install gcc make
On Arch Linux:
sudo pacman -S base-devel
2

Clone the repository

Clone the c-calc source code to your machine:
git clone https://github.com/Project516/c-calc.git
cd c-calc
3

Build c-calc

Compile the binary with make:
make
This produces a c-calc binary in the project directory.
To build an optimized release binary (compiled with -O3 -s), run make release instead.
make release
4

Verify the build

Run a quick test to confirm the binary works:
./c-calc 1 + 1
Expected output:
Result: 2.0000

Clean up

To remove the compiled binary and start fresh:
make clean

Next steps

Now that c-calc is built, run your first calculation:

Quickstart

Learn how to use interactive and non-interactive mode.

Build docs developers (and LLMs) love