I wanted to add additional C/C++ compiler options.
So, I went to Compiler Options->Additional C/C++ Compiler Options and then added one item: "-Werror=parentheses" and when I did a compile, it succeeded. NOTE: I didn't type the quotes into the dialog box, just what is between the quotes.
Then, I added another option: "-Werror=parentheses -Wextra" and now I get a compilation error:
cc1: error: -Werror=parentheses -Wextra: no option -Wparentheses -Wextra
NOTE: I didn't type the quotes into the dialog box, just what is between the quotes.
When I look at the compile invocation between the two compile attempts, in the first case, the command line has -Werror=parentheses but in the second case, it has "-Werror=parentheses -Wextra" i.e. it adds quotes and it seems like the quotes are making the compiler unhappy.
So, the question is, how does one specify multiple Compiler Options?
Please sign in to leave a comment.