Unrecognized command line error in Code::Blocks

I created a Code::Blocks exporter in Projucer in a working VST project that already has many Visual Studio 2019 exporters. They all work fine on VS2019 side.

The build error I am getting in Code::Blocks is:
“||error: unrecognized command line option ‘-std=c++17’|”
Is there a place in Projucer where I can address this issue?

I’m guessing your installation of Code::Blocks is using MinGW. Which version of MinGW though? Maybe it is an old version that doesn’t know about -std=c++17.

According to https://stackoverflow.com/a/60340063, the flag -std=c++17 was added in gcc 8.