I have tried googling this but all I get is results on how to compile a basic program. Is it possible to compile code to a specific C++ standard using Clang++ and G++ by specifying that code should be compiled to say, C89, C99, C++98, etc?
You can use the -std flag. For example, to compile to C99, use -std=c99
The documentation for it is here
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