Since Dev C++ is an old IDE and automatically uses TDM GCC 4.9.2 when downloaded, so I tried to download one without compiler, and later downloaded MingW GCC 9.2.0 for it. If you're a user of Dev C++ or used to use it (if not you can search for images in Google), you'll know the compiler used is shown near the top middle of the IDE, slightly right to the compile and run buttons. In my case, it shows it's using MingW GCC 9.2.0, but when I used a newer function such as iota and shuffle, an error occured telling me to include -std=c++11 or -std=gnu++11.
#error This file requires compiler and library support for the \
ISO C++ 2011 standard. This support is currently experimental, and must be \
enabled with the -std=c++11 or -std=gnu++11 compiler options.
I know how to add the command lines but do not want to since this feels like a temporary solution (not really temporary but I don't know the terminology), another solution I saw from the link is in the tools -> settings -> code generation -> language standard and choose C++11 (and that's the newest it can get), but what if I require an even newer version of C++?
So the real question, is this a problem of the IDE or the IDE is not actually using MingW GCC 9.2.0 and can I actually download a newer version of compiler for Dev C++?
Aucun commentaire:
Enregistrer un commentaire