22

How to run clion with msys2 on windows? I have set the toolchain, but when it can't find <socket.h>.enter image description here

Merlyn Morgan-Graham
  • 58,163
  • 16
  • 128
  • 183

1 Answers1

27

Run the following command

pacman -S mingw-w64-x86_64-toolchain

And install all (default).

Krupip
  • 4,404
  • 2
  • 32
  • 54
DCjanus
  • 394
  • 5
  • 9