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
1398  |  1400
Subject: 
Error Message
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 4 Apr 2002 03:20:00 GMT
Viewed: 
3522 times
  
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);

Have I done something totally stupid or is likely to be an error in my
program structure or compiler?  I'm using Windows 98, RCX2, Serial Tower,
NQC 2.3r1

Any suggestions appreciated,

--
Lee  Wilson
----------------------------------------------------
leerwilson@btinternet.com  http://www.rockafc.com
u02lrw@abdn.ac.uk           http://www.btinernet.com/~leerwilson
---------------------------------------------------



Message has 2 Replies:
  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. (...) (23 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 (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.nqc)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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