Hello,
I'm starting with codewarrior and trying to port my library to it but the compiler doesn't recognize the __COUNTER__ predefined macro although it is supposed to exist in the CodeWarrior Build Tools Reference for Power Architecture PDF.
I get :
Error : undefined identifier '__COUNTER__'
Does anyone know why ? Is it a version specific macro ?
Thanks.
Hello
Which revision of the Power Arch Build Tools Reference.pdf are you referring to here.
I checked the manual with revision date of October 07, 2008, which is delivered with V8.8 and there is no mention of
predefined macro __COUNTER__ in there.
I did perform some additional tests and the predefined macro __COUNTER__ has been added in CodeWarrior Development Studio for Power Architecture v8.8.3 patch.
So if you want to use that macro, I would recommend you to install the latest patch for CodeWarrior V8.8.
According to our web page
it is
CodeWarrior for Power Architecture v8.8.5 Patch (Windows)
I hope this helps.
CrasyCat