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

1

1 Answer 1

27

Run the following command

pacman -S mingw-w64-x86_64-toolchain

And install all (default).

4
  • There are 17 sub options to pick from, which one is the right one for winx64?
    – Dariusz
    May 5, 2018 at 10:05
  • @Dariusz Sorry, I haven't developed on Windows for a long time.
    – DCjanus
    May 31, 2018 at 10:01
  • 2
    @Dariusz you probably just want to install all of them
    – Krupip
    Jun 5, 2018 at 13:30
  • With my case, I got 19 members in group mingw-w64-x_86_64-toolchain and I chose mingw-w64-x86_64-gcc.
    – Jin Kwon
    Jul 9, 2021 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy