How to get c++ default version after install ROS ?
How to get c++ default version after install ROS ?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
How to get c++ default version after install ROS ?
For Ubuntu, you can check in command terminal.
`gcc --version`
or
`aptitude show gcc`
If you want to check in code:
#include <iostream>
#include <typeinfo>
int main()
{
if (__cplusplus == 201703L) std::cout << "C++17\n";
else if (__cplusplus == 201402L) std::cout << "C++14\n";
else if (__cplusplus == 201103L) std::cout << "C++11\n";
else if (__cplusplus == 199711L) std::cout << "C++98\n";
else std::cout << "pre-standard C++\n";
}
Asked: 2021-09-14 10:25:38 -0500
Seen: 176 times
Last updated: Oct 19 '21
What operating system? Not sure if you are referring to Windows or Linux.
ubuntu system