aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc
diff options
context:
space:
mode:
authorgetong <[email protected]>2017-03-16 17:16:30 +0800
committerLukas Larsson <[email protected]>2017-03-16 10:16:30 +0100
commit1cbc44aa05d4abf958e4bf7d5014668df3d98e90 (patch)
tree73bd29bd64227e70c8c264aab80caaf0f94e3ccb /system/doc
parent73b8d7204ef2e2ddf4b3e9b73164ae15f2359ffe (diff)
downloadotp-1cbc44aa05d4abf958e4bf7d5014668df3d98e90.tar.gz
otp-1cbc44aa05d4abf958e4bf7d5014668df3d98e90.tar.bz2
otp-1cbc44aa05d4abf958e4bf7d5014668df3d98e90.zip
update doc (#1365)
Update erl_interface tutorial docs to work reflect a more modern erl_interface environment
Diffstat (limited to 'system/doc')
-rw-r--r--system/doc/tutorial/erl_interface.xmlsrc8
1 files changed, 4 insertions, 4 deletions
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 <c>erl_interface.h</c> and <c>ei.h</c>, and
also to the libraries <c>erl_interface</c> and <c>ei</c>:</p>
<pre>
-unix> <input>gcc -o extprg -I/usr/local/otp/lib/erl_interface-3.2.1/include \\ </input>
-<input> -L/usr/local/otp/lib/erl_interface-3.2.1/lib \\ </input>
-<input> complex.c erl_comm.c ei.c -lerl_interface -lei</input></pre>
+unix> <input>gcc -o extprg -I/usr/local/otp/lib/erl_interface-3.9.2/include \\ </input>
+<input> -L/usr/local/otp/lib/erl_interface-3.9.2/lib \\ </input>
+<input> complex.c erl_comm.c ei.c -lerl_interface -lei -lpthread</input></pre>
<p>In Erlang/OTP R5B and later versions of OTP, the <c>include</c>
and <c>lib</c> directories are situated under
<c>OTPROOT/lib/erl_interface-VSN</c>, where <c>OTPROOT</c> is
@@ -184,7 +184,7 @@ Eshell V4.9.1.2 (abort with ^G)
{ok,complex2}</pre>
<p><em>Step 3.</em> Run the example:</p>
<pre>
-2> <input>complex2:start("extprg").</input>
+2> <input>complex2:start("./extprg").</input>
&lt;0.34.0>
3> <input>complex2:foo(3).</input>
4