Sane C++ Libraries

Amalgamation Tool

Open
Sane C++ Libraries can be consumed also as single-file amalgamated files, that must be generated with one of the following methods:
How to GENERATE amalgamated libraries offline If you have Sane C++ Libraries checked out locally / offline, to generate them in `_Build/_SingleFileLibraries` run:
python3 Support/SingleFileLibs/python/amalgamate_single_file_libs.py
        
alternatively if you prefer to use node.js instead of python run:
node Support/SingleFileLibs/javascript/cli.js --repo-root . --ref HEAD --all --out _Build/_SingleFileLibrariesJS
        
How to GENERATE amalgamated libraries in-browser
  • Click Generate / Download button on a single library row
  • Click Show Dependencies to learn what other libraries are required for a given one
  • Click Download all (in the upper right corner of this page) to amalgamate all libraries and obtain them in a ZIP file
  • Use a GitHub token to raise API limits (used to retrieve git metadata, stored locally only)
How to USE amalgamated libraries

In one (or more) of your headers

#include "SaneCppAsync.h"

In one of your .cpp files

#define SANE_CPP_IMPLEMENTATION
#include "SaneCppAsync.h"

Link on macOS

  • CoreFoundation.framework
  • CoreServices.framework

Link on Linux

  • libdl
  • libpthread

Link on Windows

  • Ws2_32.lib
  • ntdll.lib
  • Rstrtmgr.lib
  • DbgHelp.lib
Note: On Windows #pragma comment(lib, ...) is automatically linking required libraries.
Repository: GitHub
Version: loading…
Library Description Action
Loading…
Working…
Preparing…