Skip to content

Instantly share code, notes, and snippets.

View vonKingsley's full-sized avatar

Kingsley Lewis vonKingsley

  • Sacramento, California - US
View GitHub Profile
@Papierkorb
Papierkorb / 000_HOWTO.md
Last active May 25, 2024 08:25
Dynamic library in Crystal

Writing a dynamic library in Crystal, and calling it from C

  • Download all files.
  • Build the Crystal part:
crystal build --release --cross-compile --prelude ./no_main library.cr
              ^ You can leave this out
                        ^ We want to link ourselves!
 ^ Use our custom prelude!