-
-
Save badeball/8bf7f3d7feda312815f4 to your computer and use it in GitHub Desktop.
mruby example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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