Menu

GCASM: Symbol 37.00 has not been defined

Capaction
2010-03-16
2013-05-30
  • Capaction

    Capaction - 2010-03-16

    My program   http://capaction.free.fr/JVDx0313a.txt  is successfully compiled with GCASM

    But I get an error file with:    Error: GCASM: Symbol 37.00 has not been defined

    When I test my program on the workshop ignition bench all cases using the TimerCount  variable fail.

    The CCP trigger alone  works fine on case 2

     
  • Hugh Considine

    Hugh Considine - 2010-03-16

    The cause of the problem seems to be lines 182 and 206. GCBASIC doesn't like this:

    IF SensorOn And CapturedEvent off Then
    

    However, when I change it to this:

    IF SensorOn And CapturedEvent = off Then
    

    It compiles fine. This is to do with the way that GCBASIC compiles bit tests - if you use the equals sign, it will use newer code which can handle being combined with And and Or. However, with no equals sign, it will use the older code which can't be combined with And and Or.

    I'll see if I can get GCBASIC to generate a more helpful error message!

     

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.