How to run clion with msys2 on windows? I have set the toolchain, but when it can't find <socket.h>.
<socket.h>
Run the following command
pacman -S mingw-w64-x86_64-toolchain
And install all (default).