I searched a lot on internet, google, youtube regarding installation of C++ 14 or C++17 but did not find any result . Can any there help me out ?
It would be helpful if you mention about your OS and system architecture. Also these (C++14 and C++17) are just language standards. If you use Windows, the best options are using CygWin or Windows Subsystem for Linux. There you can install the standard g++
package, which is the standard GNU Compiler for C++.
It is a UNIX based package that’s why you need to install CygWin or Subsystem on Windows. If you use Linux, then it’s pretty cool, you can directly install the g++
package.
I’ve been completely a Linux user since the past few years, so I think I’m not the best person to share information about Windows Systems, but whatever I have shared is the best to my knowledge.
After successful installation of the above mentioned, you can simply compile your code with:
g++ -std=c++14 FileName.cpp -o FileName
or
g++ -std=gnu++14 FileName.cpp -o FileName
for compiling code with C++14 standard.
And
g++ -std=c++17 FileName.cpp -o FileName
or
g++ -std=gnu++17 FileName.cpp -o FileName
for compiling code with C++17 standard.
Hope it helps!
__/\__
Thanks a lot bro…!!
Thanks a lot bro…!!