#95 stopthread error

compiler
closed-rejected
John Hansen
NBC (24)
5
2011-05-19
2011-05-17
Anonymous
No

StopTask(thread1);

# Error: Invalid opcode: stopthread
# stopthread thread1
#----------------------------------------------------------
1 errors during compilation

Discussion

  • John Hansen
    John Hansen
    2011-05-19

    You will get this compiler error if you write code that requires the enhanced NBC/NXC firmware and you do not tell the compiler to target that firmware. You need to pass -EF on the command line to tell NBC to target the enhanced firmware. The stopthread opcode is only available with the enhanced firmware.

     
  • John Hansen
    John Hansen
    2011-05-19

    • status: open --> closed-rejected