Блог пользователя Murk

Автор Murk, история, 6 лет назад, По-английски

I don't know how to use <bits/stdc++.h> with clion so I could make it visible to the visual studio compiler I configured, can anyone help on that ?

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

Visual Studio compiler does not have this library. In order to use it you need to use GCC compiler. You can do it using the MinGW, or Cygwin. More on this topic here.

  • »
    »
    6 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    thank you,I did install MinGW, But I keep getting this error whenever I build a project

    C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/fs_path.h: In member function 'std::filesystem::__cxx11::path& std::filesystem::__cxx11::path::operator/=(const std::filesystem::__cxx11::path&)': C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/fs_path.h:237:47: error: no match for 'operator!=' (operand types are 'std::filesystem::__cxx11::path' and 'std::filesystem::__cxx11::path') ** || (__p.has_root_name() && __p.root_name() != root_name()))** ** ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~**

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I think you can create a file and name it as 'stdc++.h'.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

hey dude, i got the same problem with you.. it works after i change c++20 to c++14..