To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1399
  Error Message
 
Hi. Can anyone help me with a problem I'm having. I'm writing a fairly simple program in NQC and when I compile I get an error saying "undefined variable SENSOR_LIGHT" The line that generates this error is simply: SetSensor(SENSOR_1, SENSOR_LIGHT); (...) (22 years ago, 4-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: Error Message
 
The only thing I could think of is if NQC thinks you are generating code for some other device (e.g. CyberMaster). Try adding -Trcx2 to the command line to force NQC to target RCX2. If that doesn't fix it, email me the program and I'll take a look. (...) (22 years ago, 7-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: Error Message
 
(...) I don't know if you are using BricxCC or not, but I get a single error when I try to compile this line of code if the target is set to Scout or Cybermaster. If I turn on the NQC 1.x compatibility mode via the Preferences dialog I get two (...) (22 years ago, 9-Apr-02, to lugnet.robotics.rcx.nqc)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR