[PATCH] Fix linking errors when building with MinGW.

Marc Lehmann schmorp at schmorp.de
Sat May 2 19:41:11 CEST 2020


On Sat, May 02, 2020 at 05:27:10PM +0800, DDoSolitary <ddosolitary at gmail.com> wrote:
> One will get errors like "undefined reference to __imp_htonl" when
> trying to build libev with MinGW on Windows. This patch fixes this by
> linking to ws2_32, which provides winsock functions.

Hmm, the patch doesn't seem to be for libev - Are you sure you got the
right project and not something else that embeds libev?

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list