Michael-F-Bryan / rust-ffi-guide

A guide for doing FFI using Rust
https://michael-f-bryan.github.io/rust-ffi-guide/
Creative Commons Zero v1.0 Universal
282 stars 18 forks source link

Linker Errors and Name Mangling Problem #48

Open Michael-F-Bryan opened 6 years ago

Michael-F-Bryan commented 6 years ago

Problem 1 (link) is on what happens when you forget to add #[no_mangle] to an extern "C" function. In the solutions section we should explain why the program doesn't link, as well as what's happening behind the scenes and how to fix it.