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
20082026
-
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) -
…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 -
…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
comment by zX41ZdbW · 2023-07-23 · in The theory versus the practice of “static websites” -
…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…
comment by sixdimensional · 2023-07-15 · in The theory versus the practice of “static websites” -
…found a very clever C and C++ wrapper [1] for that, which gives you an INCBIN() macro. Nice! [1]: https://github.com/graphitemaster/incbin
comment by unwind · 2022-09-22 · in Olive.c: a simple graphics library that does not have any dependencies -
…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 -
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 -
…$ 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