Menu

Problem during compilation

jackjames
2016-02-29
2016-02-29
  • jackjames

    jackjames - 2016-02-29

    I downloaded and installed the latest version of the compiler (2016-02-25).
    I've compiled a program with the previous version did not give me problems, now there is a warning.
    Te compiler give me the warning of a subroutine that is used and is properly inserted in the assembler files.
    This is the message:

    20:00:11 G+Stool-COMPILE/ASSEMBLE, processing K:\GCBasic\GCB@Syn\G+Stools\makeHEX.bat
    Source-File = N:\Sorgenti Programmi Microcontrollori\Sorgenti programmi GCBASIC\Tastiera 6x1\Tastiera6x1.gcb
    8.2 Sec. <<< WARNINGs / ERRORs while compiling!
    Doubleclick on errormessage below to go to sourcecode-line:
    Tastiera6x1.gcb (215): Warning: Missing Function/Sub definition

    As I said the routine is present and is called by the program

     

    Last edit: jackjames 2016-02-29
  • Anobium

    Anobium - 2016-02-29

    Yes, it is a warning

    You are defining a SUB and then you end with END FUNCTION. Replace END FUNCTION with END SUB and all will be good.

    PS. Very good posting. :-) Really excellent.

     

    Last edit: Anobium 2016-02-29
  • jackjames

    jackjames - 2016-02-29

    Thank you !
    Two hours to figure it out and I had in front my eyes!
    In fact at the beginning I had written a function, but using the value calculated more times I preferred to add it in a variable rather than recalling each time the function.
    Ciao.

    Giacomo

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.