When running Code::Blocks under Ubuntu, switching from clang to g++ leaves a clang-specific compiler option in foobar.cbp. The workaround is to open foobar.cbp and edit out the option.
At first glance, it appears that when a compiler change occurs the compiler options in foobar.cbp should be cleared out and regenerated from the defaults. Another approach would be to set the new options based on the old ones, for those that are common to both old and new compilers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, but this is not a bug but a feature. CB is leaving the options for future reference, so you can adapt them to the new compiler. And for compilers that have compatible options it will almost just work.
@Morten: I'm assigning this to you because you have a better idea how this works and should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At first glance, it appears that when a compiler change occurs the compiler options in foobar.cbp should be cleared out and regenerated from the defaults. Another approach would be to set the new options based on the old ones, for those that are common to both old and new compilers.
Sorry, but this is not a bug but a feature. CB is leaving the options for future reference, so you can adapt them to the new compiler. And for compilers that have compatible options it will almost just work.
@Morten: I'm assigning this to you because you have a better idea how this works and should work.