Warning & Error Messages


+ Reply to Thread
Results 1 to 17 of 17
  1. #1
    Join Date
    Sep 2010
    Posts
    50

    Default Warning & Error Messages

    A category which contains compiler error message and the usual solution to the problem would be great. It could contain the soloution or just the Error message and a link to a post where the solution was given. This could save hours of searching!

  2. #2
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    888

    Default Re: Warning & Error Messages

    This suggestions sounds good to me. Maybe a section in the WIKI?

    Moderators, i need your feedback.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    A wiki section/page sound good to me.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,256

    Default Re: Warning & Error Messages

    Agreed.

    One of the first things I did as a junior mainframe programmer was to start a collection of error codes and solutions used. The thing grew into a large binder over 20 years.

  5. #5
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    888

    Default Re: Warning & Error Messages

    OK, so under the WIKI entry in the front end CMS, I've added a section Compiler Error Codes.

    If you'd like the description changed drop me a line.

    Feel free to create articles in that section to document error codes and examples of correct syntax or whatever.

  6. #6
    Join Date
    Sep 2010
    Posts
    50

    Smile Re: Warning & Error Messages

    How does the WIKI work? Who adds the Warnings and/or error messages? How about the solutions or links? Thanks for adding. I know it will save me a lot of search time, once it is up and running.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    Only moderators and contributors can make changes. We are working on content for this new section.

    In the meantime if you have content to add post it here and it will be added. We like user input!!!
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    888

    Default Re: Warning & Error Messages

    Users that wish to contribute can request contributor status by emailing or PM'ing me or a moderator.

    We can elevate the user status to contributor and the user can create articles.

    HOWEVER we will moderate and check articles before they go live to prevent abuse and spam

  9. #9
    Join Date
    Sep 2010
    Posts
    50

    Default Re: Warning & Error Messages

    Here's one that took me a while to figure out:
    Warning is:
    "Warning Line 23: Command line overrides statement. (18F4550.BAS)"
    Solution was:
    Change the compiler from PBPW to PBPL by: View->Compile and Program Options-> Compiler->Select Check Box by "Use PBPL".

  10. #10
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    Quote Originally Posted by lester View Post
    OK, so under the WIKI entry in the front end CMS, I've added a section Compiler Error Codes.

    If you'd like the description changed drop me a line.

    Feel free to create articles in that section to document error codes and examples of correct syntax or whatever.
    The "create article" button is missing.
    http://www.picbasic.co.uk/forum/cont...64-error-codes
    Dave
    Always wear safety glasses while programming.

  11. #11
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    I started a wiki page in the new "Compiler Error Codes" section.
    http://www.picbasic.co.uk/forum/cont...nd-Error-Codes
    Dave
    Always wear safety glasses while programming.

  12. #12
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    Quote Originally Posted by cc1984 View Post
    Here's one that took me a while to figure out:
    Warning is:
    "Warning Line 23: Command line overrides statement. (18F4550.BAS)"
    Solution was:
    Change the compiler from PBPW to PBPL by: View->Compile and Program Options-> Compiler->Select Check Box by "Use PBPL".
    What was the code number?
    Dave
    Always wear safety glasses while programming.

  13. #13
    Join Date
    Sep 2010
    Posts
    50

    Default Re: Warning & Error Messages

    Quote Originally Posted by mackrackit View Post
    What was the code number?

    No code number is returned. I get exactly what I typed in. What category do these "non-assigned" error codes fall into? It is definitely a fatal error, since it will not compile.

  14. #14
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    Quote Originally Posted by cc1984 View Post
    No code number is returned. I get exactly what I typed in. What category do these "non-assigned" error codes fall into? It is definitely a fatal error, since it will not compile.
    Interesting.

    When I forget to use PBPL I get:
    "....ERROR line 20: Bad data type."

    That is with MCS. What are you using as a code editor/IDE?
    Dave
    Always wear safety glasses while programming.

  15. #15
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,256

    Default Re: Warning & Error Messages

    Dave,

    Does MPLAB give the same error messages than MCSP? Are there alternative IDEs?

    I would think that error code numbers are IDE specific. Unless they all got together and came up with a standardized list, but that would surprise me greatly. It might be a good idea to separate the wiki by IDE product.

    (I don't use MPLAB so can't comment on that)
    Not as dumb as yesterday, but stupider than tomorrow!

  16. #16
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Warning & Error Messages

    Pic Basic Pro has codes of its own as MPASM does. The errors are saved to error files in your project directory. The IDE reads thos files.

    As far as I know anyways.
    Dave
    Always wear safety glasses while programming.

  17. #17
    Join Date
    Sep 2010
    Posts
    50

    Default Re: Warning & Error Messages

    Quote Originally Posted by mackrackit View Post
    Interesting.

    When I forget to use PBPL I get:
    "....ERROR line 20: Bad data type."

    That is with MCS. What are you using as a code editor/IDE?
    I am using MicroCode Studio. What shipped on the PBP installation disk.

Posting Permissions

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