From 21307fdf279e87b15146f975b3e540d280a4a421 Mon Sep 17 00:00:00 2001 From: Amir Ghassemi Nasr Date: Tue, 13 Dec 2016 17:05:35 +0330 Subject: fix library open error in linked-in port driver tutorial --- system/doc/tutorial/c_portdriver.xmlsrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/doc') diff --git a/system/doc/tutorial/c_portdriver.xmlsrc b/system/doc/tutorial/c_portdriver.xmlsrc index 933e2395a3..da680642b6 100644 --- a/system/doc/tutorial/c_portdriver.xmlsrc +++ b/system/doc/tutorial/c_portdriver.xmlsrc @@ -161,8 +161,8 @@ decode([Int]) -> Int. Running the Example

Step 1. Compile the C code:

-unix> gcc -o exampledrv -fpic -shared complex.c port_driver.c
-windows> cl -LD -MD -Fe exampledrv.dll complex.c port_driver.c
+unix> gcc -o example_drv.so -fpic -shared complex.c port_driver.c +windows> cl -LD -MD -Fe example_drv.dll complex.c port_driver.c

Step 2. Start Erlang and compile the Erlang code:

 > erl
-- 
cgit v1.2.3