User forums > Using Code::Blocks
Can I define a set of compiler options for every compiler in a project?
(1/1)
terryys:
When I switch the compiler from gfortran to g95, the compiler options are carried over (e.g. there is a "-fbacktrace" in g95's other options if I have enabled this in gfortran). Since the extra options are not recognized, the build fails and I have to add/remove the extra options whenever I switch the compiler. Is there a way to change the options automatically when a different compiler is chosen?
Jenna:
The easiest way would be to use different targets for different compilers, another possibility is to use scripting (see our wiki for details, especially: script expansion).
Navigation
[0] Message Index
Go to full version