{"id":15048848,"url":"https://github.com/kernferm/calculator-n-c","last_synced_at":"2026-02-02T03:33:42.358Z","repository":{"id":255010454,"uuid":"848256680","full_name":"KernFerm/Calculator-N-C","owner":"KernFerm","description":"This project is a simple calculator with a graphical user interface (GUI) built using the GTK library. The calculator supports basic arithmetic operations such as addition, subtraction, multiplication, division, modulus, exponentiation, and square root.","archived":false,"fork":false,"pushed_at":"2024-08-27T12:46:03.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T23:44:15.448Z","etag":null,"topics":["c-language","calculator","gui-application"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KernFerm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T12:34:49.000Z","updated_at":"2024-08-27T13:06:38.000Z","dependencies_parsed_at":"2024-08-27T14:07:40.517Z","dependency_job_id":null,"html_url":"https://github.com/KernFerm/Calculator-N-C","commit_stats":null,"previous_names":["kernferm/calculator-n-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KernFerm/Calculator-N-C","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FCalculator-N-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FCalculator-N-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FCalculator-N-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FCalculator-N-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KernFerm","download_url":"https://codeload.github.com/KernFerm/Calculator-N-C/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KernFerm%2FCalculator-N-C/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261816169,"owners_count":23213857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-language","calculator","gui-application"],"created_at":"2024-09-24T21:16:50.887Z","updated_at":"2026-02-02T03:33:42.290Z","avatar_url":"https://github.com/KernFerm.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Calculator with GUI in C\n\nThis project is a simple calculator with a graphical user interface (GUI) built using the GTK library. The calculator supports basic arithmetic operations such as addition, subtraction, multiplication, division, modulus, exponentiation, and square root.\n\n## Features\n\n- **GUI-Based:** Easy-to-use graphical user interface.\n- **Advanced Operations:** Supports basic arithmetic, modulus, exponentiation, and square root.\n- **Windows-Compatible:** This guide is tailored for Windows users.\n\n## how to download the repo first time users\n\n- click link to read [**Instructions**](https://www.gitprojects.fnbubbles420.org/how-to-download-repos)\n\n## Prerequisites\n\nTo compile and run this program on Windows, you need to set up the GTK environment using MSYS2.\n\n### Step 1: Install MSYS2\n\n1. Download and install MSYS2 from the official website: [MSYS2](https://www.msys2.org/).\n2. After installation, open the MSYS2 terminal.\n\n### Step 2: Install GTK and GCC\n\nUpdate the package database and install the necessary packages:\n\n```\npacman -Syu\npacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-gcc\n```\n\n### Step 3: Download the Source Code\n- Download the `calculator.c` file directly from the provided source.\n- Save the file to a directory of your choice on your local machine.\n\n### Step 4: Compile the Program\n- Open the MSYS2 MinGW 64-bit terminal and navigate to the directory where you saved `calculator.c`. Compile the program using the following command:\n\n```\ngcc calculator.c -o calculator.exe `pkg-config --cflags --libs gtk+-3.0`\n```\n\n### Step 5: Run the Program\n- Once compiled, you can run the program directly from the terminal or by double-clicking `calculator.exe` in your file explorer.\n\n```\n./calculator.exe\n```\n\n\n## Notes\n\n- **GTK Libraries:** Ensure that the required GTK DLLs are accessible in your system's PATH, or place them in the same directory as your compiled `.exe` file. These DLLs are part of the GTK installation handled by MSYS2.\n- **Packaging:** If you plan to distribute the executable, include the necessary GTK runtime DLLs with it.\n\n## Troubleshooting\n\n- **Missing DLLs:** If the program doesn't start due to missing DLLs, ensure all GTK runtime libraries are included or properly referenced in your PATH.\n- **Compilation Errors:** Make sure you are using the MinGW 64-bit terminal in MSYS2 and have installed the correct packages.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernferm%2Fcalculator-n-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernferm%2Fcalculator-n-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernferm%2Fcalculator-n-c/lists"}