will not compile


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    153

    Default 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

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default

    Hi,
    They both compiles here but gave the same error before I had all the variables properly declared:
    Name:  Undeclared_variables.jpg
Views: 216
Size:  47.6 KB
    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.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,802


    Did you find this post helpful? Yes | No

    Default

    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

  4. #4
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    153


    Did you find this post helpful? Yes | No

    Default will not compile

    Your correct I was rewriting some old code for 1302 to 1307 and deleted my variables geez

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts