As long as the decompiler you choose spits out actual C code and not pseudocode (some do), it should just be a matter of adding a few extra flags to your compiler (if you use gcc, these are usually prefaced by -m. See here for gnu's docs). As far as I know, though, most decompilers only work with 32-bit x86, so you may be out of luck if your library is 64-bit. There are also toolchains that are specifically designed for this task, although many of them come packaged with IDEs (check out tools like Codesourcery ).
Good luck