mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
Update hello-world README
This commit is contained in:
parent
881e7c2b05
commit
cc555dd880
@ -15,7 +15,7 @@ in our imaginations...so Rube Goldberg it is!)
|
||||
1. `cd` into `examples/hello-world/`
|
||||
2. Run `cargo run hello.roc` to compile the Roc source code into a `hello.o` file.
|
||||
3. Run `gcc -shared hello.o -o libhello_from_roc.so` to generate `libhello_from_roc.so`. (This filename must begin with `lib` and end in `.so` or else `host.rs` won't be able to find it!)
|
||||
4. Move `libhello_from_roc.so` onto the system library path, e.g. with `sudo mv libhello_from_roc.so /usr/local/lib/`
|
||||
4. Move `libhello_from_roc.so` onto the system library path, e.g. with `sudo mv libhello_from_roc.so /usr/local/lib/` on macOS, or `sudo mv libhello_from_roc.so /usr/local/lib /usr/lib` on Linux.
|
||||
5. Run `rustc host.rs -o hello` to generate the `hello` executable.
|
||||
6. Run `./hello` to see the greeting!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user