It works without much hassle at all if you dynamically link the library. That's what I do when using other people's C libs. (For my own, I'll just recompile with dmc on Windows. On Linux, it just works, since they all use the same linker anyway.)