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 ?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3741 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3489 |
7 | Radewoosh | 3483 |
8 | Kevin114514 | 3442 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | atcoder_official | 162 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | nor | 150 |
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 ?
Name |
---|
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.
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()))** ** ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~**
use
-std=c++14
FYI: https://stackoverflow.com/questions/50546025/mingw-w64-8-1-0-rev-0-doesnt-compile-when-including-filesystem
I think you can create a file and name it as 'stdc++.h'.
hey dude, i got the same problem with you.. it works after i change c++20 to c++14..
Thanks, I got the same error and this worked (idk how/why)