I’m trying to use the librsync library in my java program trough the JNA. For this i need to be able to compile the librsync library into a dll. I know how to compile a single c file into a dll using MinGW and for this i have found lots of examples but i’m at a loss on how to do it for a large library like librsync. Is this even possible?
Thanks in advance,
Frank
I don’t know anything specific about librsync, but you should be able to use ld or gcc –shared as normal. However, when you try to build big libraries with lots of dependencies it is ofen very much simpler if you can use the existing Makefile, and only make small modifications to it.
So your first step would be to see that it builds under MinGW as it is, then go ahead and try to modify the Makefile to make a dll