User forums > Using Code::Blocks
GNU ARM GCC
thomas:
In the 12 July build, project-level variables certainly work (I use those every day), however, the ones you set compiler-wide are not honoured.
This is not a big problem in your case, though, as the 12 July build supports GCV. Go to Settings -> Global Variables and define your variable there. In fact, this is even better because you can have different sets, so for example switching to another compiler version is very easy.
Remember that you have to reference that type of variables by $#NAME or $(#NAME), not $NAME. See the WiKi ("global compiler variables") for more info on that subject.
thomas:
With tonight's release, you should be able to use per-compiler variables again, too.
Devil_Advocate:
I tried with the 17 July nightly build but I didn't manage to replace NAME by a custom value. Can you send me screen-shot please?
Devil_Advocate:
Nobody can explain me the exact procedure?
MortenMacFly:
You need to use $NAME as compiler option. Then define a custom variable "NAME" with e.g. "arm920t" as content (without quotation marks). I tried it -> it works.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version