complie .dll file in windows

32 views
Skip to first unread message

liyongc...@gmail.com

unread,
Jun 14, 2016, 5:03:31 AM6/14/16
to librsync
hi:
i need to use librsync in windows,but when i compile it on vs2010 ,lots of errors occurred,i googled and tried other's method,still not worked,can any body help me to share how to get the dll file.
thank you.

Rob Janes

unread,
Jun 27, 2016, 9:03:28 PM6/27/16
to librsync, liyongc...@gmail.com
well ... if you're talking about 0.9.7, you need to do a lot of hand holding.  dll exports is a problem for linking with rdiff.  you'll either need to add the declaration to the function to make the dll export, or you'll need to list the exports in a .def file.  there are other issues, like inline is not good.  __inline is what works.  you need a config.h.  the same config.h needs to be used by all compilation units, otherwise good luck.

if you're using 2.x, the cmake should do a reasonable first pass at the solution files.  You still need to fix things, but it's a good start.

can i suggest you attach the errors to your post?

also, which version of librsync are you working with?
Reply all
Reply to author
Forward
0 new messages