### Crescendo's blog

By Crescendo, history, 5 weeks ago, translation,

Hello! I ran into a following problem. I downloaded Code::Blocks 20.03 MinGW version here. If I select C++14 and try to compile program using bits/stdc++ everything is OK.

But when I select C++17 a mistake occurs:

If I don't use bits/stdc++.h but include the libraries separately everything works with C++14 and with C++17. So the problem is exactly in this library. What I need to do to make bits/stdc++ working with C++17?

UPD: this helps:
#define _GLIBCXX_FILESYSTEM
#include <bits/stdc++.h>

• +29

 » 5 weeks ago, # |   0 Hey, I would recommend you using VS Code as it comes easy to use, with many cool extension support and much larger community base.
•  » » 5 weeks ago, # ^ |   0 I am thinking about starting to use other IDEs, but I would also like to understand what the problem is in this case.
•  » » » 5 weeks ago, # ^ |   +5 You could try switching to other GCC builds, no need to change IDE. One of those I have installed works with bits/stdc++ and another doesn't. This should be the link to the one that does, but I had other issues with it (unrelated to competitive programming).
•  » » » » 5 weeks ago, # ^ |   0 I see, thanks for the advice!
 » 5 weeks ago, # |   +5 Try selecting ISO instead of GNU? I used to use Code::Blocks way back in the day and ISO C++17 worked fine.
•  » » 5 weeks ago, # ^ |   0 Unfortunately, it doesn't work either way. But using C++14 both (ISO and GNU) work fine.But #define _GLIBCXX_FILESYSTEM helps.
 » 5 weeks ago, # |   +14 Use this to show that you already include that produce this complitation error: #define _GLIBCXX_FILESYSTEM #include 
•  » » 5 weeks ago, # ^ |   0 Thanks, this works! But can you explain why i don't need to write this while using C++14?
•  » » » 5 weeks ago, # ^ |   0 filesystem library was introduced in C++17.
 » 5 weeks ago, # |   0 U can use different ide like sublime and Vs code which are preety smooth and have some cool extensions