
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
C++ Standards Support in GCC
GCC supports different dialects of C++, corresponding to the multiple published ISO standards. Which standard it implements can be selected using the -std= command-line option.
C++98 − GCC has full support for the 1998 C++ standard as modified in 2003 and renamed to C++03 and some later defect reports.
C++11 − GCC 4.8.1 was the first complete implementation of the 2011 C++ standard, previously known as C++0x.
C++14 − GCC has full support for the latest revision of the C++ standard, which was published in 2014.
C++17 − GCC has experimental support for the next revision of the C++ standard, which is expected to be published in 2017.
You can use these different compiler supports by providing the command-line option, -std=. For example, if you want to compile a file under the C++11 implementation, you'd use −
$ g++ -std=C++11 my_file.cpp
- Related Articles
- MySQL Standards Compliance
- Builtin functions of GCC compiler in C++
- Who’s Who in the International Standards World
- Who’s Who in the Internet Standards World
- Scripting standards for Automation Testing in RPA
- Ethical Standards in India and Other Countries
- Compiling a C++ program with GCC
- Standards for maintaining Customer Repository Objects in SAP
- What are the SONET/SDH standards in networking?
- Code Standards and Folder Structure in a Project
- Advertising Standards Council of India (ASCI)
- What are Python coding standards/best practices?
- Differentiate between accounting standards and accounting concepts.
- Coding standards (style guide) for Python programs?
- What is the difference between g++ and gcc?
