getditto / safer_ffi

Write safer FFI code in Rust without polluting it with unsafe code
http://getditto.github.io/safer_ffi
MIT License
915 stars 39 forks source link

Missing libraries in README.md C compilation example #20

Closed wahn closed 4 years ago

wahn commented 4 years ago

On my system (Ubuntu Linux) I had to add two more libraries (-lpthread -ldl) in the compilation/linking line for main.c:

$ cc main.c -o main -L target/debug -ltest_ffi -lpthread -ldl

Maybe worth mentioning this in the README.md file ...

danielhenrymantilla commented 4 years ago

Wops, that was an oversight indeed, thanks for reporting it!