Update lib name in example
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
defmodule MyLib do
|
defmodule MyLib do
|
||||||
use FFI.Library
|
use FFI.Library
|
||||||
|
|
||||||
ffi_lib "c"
|
ffi_lib "libstdc++.so.6"
|
||||||
|
|
||||||
attach_function :puts, [:string], :int
|
attach_function :puts, [:string], :int
|
||||||
end
|
end
|
||||||
|
|
||||||
IO.inspect MyLib.puts(["Hello world"])
|
MyLib.puts(["Hello World from C stdlib"])
|
||||||
|
|||||||
Reference in New Issue
Block a user