Explore a variety of single-file libraries for C and C++. This repository offers a selection of portable, easy-to-integrate libraries with minimal dependencies, suitable for multiple platforms. Ideal for developers seeking lightweight solutions that compile on both 32-bit and 64-bit systems.
This repository provides a comprehensive collection of single-file C/C++ public-domain and open-source libraries that feature minimal dependencies, making them exceptionally easy to integrate into your projects. Each library is designed to work seamlessly across both C and C++, and is compatible with various platforms, ensuring portability and flexibility for developers.
Key Features
- Lightweight Integration: All libraries listed are crafted as single files (one header, one source), which greatly simplifies integration and reduces overhead in your codebase.
- Cross-Platform Compatibility: These libraries are intended to compile and run on both 32-bit and 64-bit systems across major desktop and mobile platforms.
- Variety of Categories: The libraries are organized into several categories, including but not limited to:
- Data Structures
- Mathematics
- Audio/Video/Data Compression
- Graphics (2D and 3D)
- Networking
- Debugging & Testing
Libraries Overview
The library listing is categorized for ease of navigation, with each entry detailing the license type, API support, number of files, and a brief description of its functionality. Examples include:
- dr_wav: A public domain WAV audio loader that allows you to easily load WAV files in your C/C++ applications.
- xxHash: A fast hash function available under BSD license for efficient data hashing in your projects.
- TinySoundFont: A lightweight SoundFont2 loader & synthesizer, perfect for audio projects in C/C++.
Community Contributions
This repository encourages community participation. Recent additions and corrections are welcomed, fostering a collaborative environment wherein developers can contribute high-quality libraries. You may also find discussions regarding library improvements and new entries as needed.
Explore More
For additional resources, you may want to check related libraries and repositories:
- JSON Parsing Libraries: Insights and performance comparisons can be found at nativejson-benchmark.
- Other Library Collections: Explore additional lists like clib and CCAN for more C and C++ utilities.
Whether you are developing a game, application, or system utility, this repository provides a wealth of resources allowing for rapid development with quality libraries. Dive in and enhance your C/C++ projects with these convenient single-file solutions!