From 1cbc44aa05d4abf958e4bf7d5014668df3d98e90 Mon Sep 17 00:00:00 2001 From: getong Date: Thu, 16 Mar 2017 17:16:30 +0800 Subject: update doc (#1365) Update erl_interface tutorial docs to work reflect a more modern erl_interface environment --- system/doc/tutorial/erl_interface.xmlsrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/doc') diff --git a/system/doc/tutorial/erl_interface.xmlsrc b/system/doc/tutorial/erl_interface.xmlsrc index de50af42cf..ee648c2e88 100644 --- a/system/doc/tutorial/erl_interface.xmlsrc +++ b/system/doc/tutorial/erl_interface.xmlsrc @@ -162,9 +162,9 @@ int main() { the include files erl_interface.h and ei.h, and also to the libraries erl_interface and ei:

-unix> gcc -o extprg -I/usr/local/otp/lib/erl_interface-3.2.1/include \\ 
-      -L/usr/local/otp/lib/erl_interface-3.2.1/lib \\ 
-      complex.c erl_comm.c ei.c -lerl_interface -lei
+unix> gcc -o extprg -I/usr/local/otp/lib/erl_interface-3.9.2/include \\ + -L/usr/local/otp/lib/erl_interface-3.9.2/lib \\ + complex.c erl_comm.c ei.c -lerl_interface -lei -lpthread

In Erlang/OTP R5B and later versions of OTP, the include and lib directories are situated under OTPROOT/lib/erl_interface-VSN, where OTPROOT is @@ -184,7 +184,7 @@ Eshell V4.9.1.2 (abort with ^G) {ok,complex2}

Step 3. Run the example:

-2> complex2:start("extprg").
+2> complex2:start("./extprg").
 <0.34.0>
 3> complex2:foo(3).
 4
-- 
cgit v1.2.3