Skip to content

Instantly share code, notes, and snippets.

@badeball
Created May 11, 2014 13:25
Show Gist options
  • Save badeball/8bf7f3d7feda312815f4 to your computer and use it in GitHub Desktop.
Save badeball/8bf7f3d7feda312815f4 to your computer and use it in GitHub Desktop.
mruby example
$ git clone https://github.com/mruby/mruby.git
$ cd mruby && make && cd ..
$ mkdir mruby-example && cd mruby-example
$ cat > example.c # Trivial example from http://matt.aimonetti.net/posts/2012/04/25/getting-started-with-mruby/
$ gcc -I../mruby/include/ example.c ../mruby/build/host/lib/libmruby.a -lm -o example.o
$ ./example.o
Executing Ruby code with mruby!
"hello world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment