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 / 1402
1401  |  1403
Subject: 
Re: Error Message
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sun, 7 Apr 2002 18:45:26 GMT
Viewed: 
3506 times
  
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.

Dave Baum

In article <Gu0H3J.FuA@lugnet.com>,
"Lee Wilson" <leerwilson@btinternet.com> wrote:

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 is in Reply To:
  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); (...) (23 years ago, 4-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