Good day! When compiling, libdeflate gives the error:

CCLD gzip C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o): In function `main': C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status Makefile:166: ошибка выполнения рецепта для цели «gzip» make: *** [gzip] Ошибка 1 

I use MSYS2 for compilation. Tell me what am I doing wrong?

  • You are trying to build a library, and the compiler compiles an executable file (.exe instead of .dll). Show the compiler command line. - gbg
  • As I understand it, an error in WinMain. How can you solve it? - lorents
  • And the previous answer does not suit! - Yaroslav
  • good day! The previous answer suits you, thank you again for the answer. The fact is that the author of the project strongly rewrote it, and the same error occurred. As I understand the error here github.com/ebiggers/libdeflate/blob/master/programs/… . Tell me how to solve it? - lorents
  • fix in tomzhe revenge and will work - Yaroslav

0