We are working on a module that is developed in C++, but given the new C++11, I am thinking about migrating to that.
How to proceed? Are both the same or is there some compiler dependency?
My software currently supports Windows and Linux. I am using Microsoft Visual Studio as well as GCC to build it.
Overall, what changes are needed if any?
To build using C11 or C17, put your source code in a . c file, or set the code to compile as C. You can set this property for your project on the Configuration Properties > C/C++ > Advanced page.
Portability refers to how easily- if at all- code can move from one system architecture to another. We know that Linux is a portable because it has already been ported to various implementations. To view which implementations Linux has ported to, type in the following command. vim /usr/src/kernels/2.6.43.8-1. fc15.
C++17 features are available since GCC 5. This mode is the default in GCC 11; it can be explicitly selected with the -std=c++17 command-line flag, or -std=gnu++17 to enable GNU extensions as well.
Old C++ will work with your C++11 Compiler
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With