hippy
Ex-Staff (retired)
5.0.8, Advanced Compiler, PICAXE-08 selected. Gives a "Error: #Directive error - #endif without #ifdef", on the #ERROR line which is technically correct, note the #IF is not a #IFDEF in the second case, but that's a weird place to present the error. In fact I only noticed that error having posted and re-read what I'd posted.
<code><pre><font size=2 face='Courier'>#IFNDEF PICAXE08
#IFNDEF PICAXE08M
#ERROR Must be PICAXE-08 or 08M
#ENDIF
#ENDIF
#IF PICAXE08M
SYMBOL pwmOutPin = 2
#ENDIF </font></pre></code> Remove the second #IF-#ENDIF and it gives the error text as specified by #ERROR, however, I thought compiling for an 08 automatically created the PICAXE08 symbol ?
Edited by - hippy on 28/03/2007 19:52:20
<code><pre><font size=2 face='Courier'>#IFNDEF PICAXE08
#IFNDEF PICAXE08M
#ERROR Must be PICAXE-08 or 08M
#ENDIF
#ENDIF
#IF PICAXE08M
SYMBOL pwmOutPin = 2
#ENDIF </font></pre></code> Remove the second #IF-#ENDIF and it gives the error text as specified by #ERROR, however, I thought compiling for an 08 automatically created the PICAXE08 symbol ?
Edited by - hippy on 28/03/2007 19:52:20