Update lib name in example

This commit is contained in:
Josh Nussbaum
2015-09-21 19:12:21 -04:00
parent ef7802edca
commit 365c0b81bc

View File

@@ -1,9 +1,9 @@
defmodule MyLib do
use FFI.Library
ffi_lib "c"
ffi_lib "libstdc++.so.6"
attach_function :puts, [:string], :int
end
IO.inspect MyLib.puts(["Hello world"])
MyLib.puts(["Hello World from C stdlib"])