-
will not compile
why do these two line have trouble compiling
111 SERIN2 PORTA.2,16468,[HEX2 MONTH,HEX2 DATE,HEX2 YEAR,HEX2 HOUR,HEX2 MINUTES,HEX2 SECONDS]
153 I2CREAD SDA,SCL,$A0,ADR,[HOUR,MINUTES,DATE,MONTH]
C:\0 FILES\2MPLAB\TRACKER.BAS ERROR Line 111: Expected '['.
C:\0 FILES\2MPLAB\TRACKER.BAS ERROR Line 111: Expected ']'.
C:\0 FILES\2MPLAB\TRACKER.BAS ERROR Line 153: Expected '['.
C:\0 FILES\2MPLAB\TRACKER.BAS ERROR Line 153: Expected ']'.Halting build on first failure as requested.
BUILD FAILED: Mon Sep 20 10:00:01 2010
-
1 Attachment(s)
Hi,
They both compiles here but gave the same error before I had all the variables properly declared:
Attachment 4798
Here, I've commented out the declaration of MINUTES and SCL and it gives pretty much the same error as you get. When I uncomment those declarations it compiles just fine.
So, double check your variable declarations.
/Henrik.
-
If you want answers and not guesse, then it is good practice to post all your code, chip, IDE used.
I can only guess now you may declared wrong chip, or you have something missing in you code listing.
Ioannis
-
will not compile
Your correct I was rewriting some old code for 1302 to 1307 and deleted my variables geez