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.
pull/389/head
kraktus 3 years ago committed by GitHub
parent dd37e21cce
commit 1c7793baa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save