From 1c7793baa17258381baf2558318a1dc4c46f37ea Mon Sep 17 00:00:00 2001 From: kraktus <56031107+kraktus@users.noreply.github.com> Date: Thu, 22 Dec 2022 14:49:02 +0100 Subject: [PATCH] FFI: make gcc command clearer Didn't check if `gcc` was accepting the flag without space but it definitely reduced the comprehension when first encountering it. --- src/ffi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffi.md b/src/ffi.md index 9b0ff98..ade07c0 100644 --- a/src/ffi.md +++ b/src/ffi.md @@ -293,7 +293,7 @@ We name the file as `call_rust.c` and place it on the crate root. Run the following to compile: ```sh -gcc call_rust.c -o call_rust -lrust_from_c -L./target/debug +gcc call_rust.c -o call_rust -l rust_from_c -L./target/debug ``` `-l` and `-L` tell gcc to find our Rust library.