Using Redis with libuv on Windows

I am trying to compile an example program that comes with hiredis (C ++) using libuv as an event library. A Windows compatible version of Redis uses a library called Win32_Interop.

I had two problems:

  • Both libuv and Win32_Interop define ssize_t, but as conflicting types.

  • Both libuv and Win32_interop use WinSocks. Binding a program to ws2_32.lib causes duplicate definitions, and does not do so causes unresolved external characters.

How can I solve these problems?

+4
source share

Source: https://habr.com/ru/post/1546784/


All Articles