To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / *6225 (-5)
  Re: Program() always returns 0
 
SetUserDisplay does not work like that. You need to specify either a sensor, timer, or global variable. Once you have done that it will continuously update the display as the value changes. In your case you should write your program something like: (...) (22 years ago, 6-May-02, to lugnet.robotics.rcx.nqc)
 
  Program() always returns 0
 
The following code always displays 0 regardless of the program slot in which it is run. Is this a bug, or do I not understand the purpose of Program()? I'm using the 2.0 firmware and NQC 2.4 r2. task main() { SetUserDisplay(Program(),0); (...) (22 years ago, 6-May-02, to lugnet.robotics.rcx.nqc)
 
  Re: cygwin messed up?
 
You can try a few things with the makefile.common in the util directory and change the tool prefix from cc to gcc. Later u might have another error related to ld at that point u'll have to put the extension .exe in front of ld in one of the (...) (22 years ago, 6-May-02, to lugnet.robotics.rcx.legos)
 
  cygwin messed up?
 
i'm running the lates version of cygwin and i'm trying to follow the instructions at (URL) but, when i try to make depend i get some errors: $ make depend for i in util lib boot demo ; do c:/djgpp/bin/make.exe NODEPS=yes -C $i depend || exit 2 ; (...) (22 years ago, 5-May-02, to lugnet.robotics.rcx.legos)
 
  Re: NQC and BricxCC problem
 
John, The crash is because NQC is trying to print out an error message but doesn't have legitimate information about the lexical location (file, line number, etc) of where the error occurred. The error itself is from the "#pragma init" line - (...) (22 years ago, 5-May-02, to lugnet.robotics.rcx.nqc)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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