Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [john@xeonpwr embed]$ cat embed.rb
- require 'ffi'
- Hello module
- extend FFI::Library
- ffi_lib 'target/release/libembed.dylib'
- attach_function : process, [],:void
- end
- Hello .process
- puts 'Completed!'
- [john@xeonpwr embed]$ ruby embed.rb
- embed.rb:4: class/module name must be CONSTANT
- extend FFI::Library
- embed.rb:6: syntax error, unexpected ':', expecting `end'
- attach_function : process, [],:void
- embed.rb:6: syntax error, unexpected ',', expecting '.' or &. or :: or '['
- ... attach_function : process, [],:void
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement