Bizarre compile errors


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2014
    Posts
    13

    Default Bizarre compile errors

    Hi All,

    New to PIC Basic programming. I'm starting with examples for my PIC16F877A development board.

    I copied the 7 segment display example from here:


    http://melabs.com/samples/PBP-mixed/7segment.htm


    The first time I compiled it (at work), it compiled fine.

    I went home and changed a port assignment and it failed to compile.

    Next day I tried again at work, it failed to compile on exactly the same machine I had successfully compiled it on the previous day.

    I re-copied from the site and cut it down to just the erroring code to keep it simple and now I have two visually identical bits of code, one that compiles and one that doesn't.

    Now I could run with the one that does but as a beginner I really want to know what the hell is going on.

    Please see the attached screenshots.

    Cheers,

    Wilson.

    Name:  does-not-compile.jpg
Views: 309
Size:  126.5 KBName:  compiles.jpg
Views: 313
Size:  118.8 KB

  2. #2
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Bizarre compile errors

    One is compiling for a 12F, the other for a 16F. There is no PORTB in a 12F683, hence the issue.

  3. #3
    Join Date
    Aug 2014
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Bizarre compile errors

    Doh!


    Thanks,

    Wilson.

  4. #4
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Bizarre compile errors

    Yay! One I can answer! Thank You!

Similar Threads

  1. How to Figure Out Compile Errors?
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 25th February 2013, 19:54
  2. Usart compile errors 18F4520
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 7th May 2009, 00:13
  3. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 09:18
  4. USB Mpasm Compile errors
    By JBrannan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st December 2007, 19:13
  5. Compile errors within macro....
    By forgie in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th September 2005, 20:08

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