From 365c0b81bcb5f766d99b68bb33214144a2bc98e9 Mon Sep 17 00:00:00 2001 From: Josh Nussbaum Date: Mon, 21 Sep 2015 19:12:21 -0400 Subject: [PATCH] Update lib name in example --- examples/basic.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/basic.exs b/examples/basic.exs index 6e1ed22..d755541 100644 --- a/examples/basic.exs +++ b/examples/basic.exs @@ -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"])