Hacker GitHub

← All repos

graphitemaster/incbin

View on GitHub ↗ ★ 1,189 C

Include binary files in C/C++

8 mentions on Hacker News by 8 people: 0 stories, 8 comments · first 2017-05-10 · latest 2025-12-26

Mentions per year 8 mentions · busiest year 2022 (2)
20082026
  1. I use https://github.com/graphitemaster/incbin . It mostly works (had to make some mods when I needed more section magic to happen). Nothing I'm on supports #embed yet but here's to hoping.
    comment by Neywiny · 2025-12-26 · in C/C++ Embedded Files (2013)
  2. …to that symbol, then you don't have to crawl the headers yourself. The linker does it for you. See https://github.com/graphitemaster/incbin for a pretty wrapper around that. Aside from there being a drastically simpler answer to this…
    comment by JonChesterfield · 2024-01-23 · in Self-contained Linux applications with lone Lisp
  3. …their HTML code in the C++ binary of ClickHouse. I've tried to use this library but found a bug: https://github.com/graphitemaster/incbin/issues/61
  4. …Not tons of them, because they would explode the size of the executable. For example, for C or C++ https://github.com/graphitemaster/incbin So here's the interesting part - we decided to build executables in a way that data in those…
  5. …found a very clever C and C++ wrapper [1] for that, which gives you an INCBIN() macro. Nice! [1]: https://github.com/graphitemaster/incbin
  6. …integrating useful features instead of duplicating incbin.h [0] years after that feature worked? https://github.com/graphitemaster/incbin/blob/main/incbin.h
    comment by buserror · 2022-07-23 · in Embed is in C23
  7. I have been using a library named incbin ( https://github.com/graphitemaster/incbin ). On Mac and Linux it doesn't even require a cli tool to convert the file. It just embed the content using the `.incbin` directive of the inline…
    comment by andyonthewings · 2018-05-31 · in Embedding files in C programs with koio
  8. …$ Notice: RWE instead RW. Also: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart#H... [0] https://github.com/graphitemaster/incbin [1] https://news.ycombinator.com/item?id=10816322#10818085 EDIT: My shell script - bin2o.sh:…
    comment by hawski · 2017-05-10 · in Making a Game in Rust