I can build it successfully both in mac and Ubuntu 17.10 x86_64. In macos, I can build app which is linking this lib w/o any problem, but in Linux, I got a lot of undefined reference error on linking:
undefined reference to `_roaring_bitmap_of_ptr'
undefined reference to `_roaring_bitmap_create'
undefined reference to `_roaring_bitmap_or_inplace'
...
How can one cope with this?
Would something like a #[cfg(linux)] attribute work if combined with 1 extern block for windows and OSX, and another for Linux?
Thanks for the root cause explain
I removed this line and tested, both mac and linux are OK, so I think the compiler can handle this by itself, no need to manually give this link_name.