Compilation settings. Compiler selection

Actually, I was already googling, but I still didn’t understand if that was my version, and if I downloaded everything. In the GUI ( MinGW ) program I installed (downloaded) all sorts of packages, but they were archives and they remained hanging in the downloads. I unzipped one package ( g++ ) and put it in the C:\MinGW folder, but it didn’t give anything. Now I download cygwin , but I'm not sure that it will help. The question arose due to the lack of the to_string function in the std library std the string .

  • You did not try to contact the support service? - αλεχολυτ
  • Worth trying. - kot_mapku3
  • I solved the problem, but with the help of cygwin. Spat on mingw. - kot_mapku3

2 answers 2

Most likely you downloaded the wrong one. Let me give you links to good builds that have been developing well for a long time, as a rule, they have fresh versions of the compiler. This is here for Win x32 , for Win x64 . But then you will need to decide on the thread model yourself, there are both win and posix . I would recommend the latter, although they say for Windows - the former work faster, but to the detriment of full support for С++11 .

    MinGW does not include the string library with the std . It supports cygwin . Simply download cygwin from the official site and in the CLion settings, select the cygwin folder (where all the files were installed) instead of MinGW and reload the project.

    • The utter nonsense! MinGW includes the entire STL library - Majestio
    • includes, I do not argue, but there is no to_string (in this version). - kot_mapku3
    • it means you need to put your toolchain (s), in the answer I indicated working examples - Majestio
    • thanks, I 'll save for the future, but so far everything is fine with cygwin - kot_mapku3