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 / 1879
1878  |  1880
Subject: 
nqc compilation errors
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sun, 14 Jan 2007 13:13:16 GMT
Viewed: 
11192 times
  
Background:

nqc -v
nqc version 3.1 r4 (built Jan 12 2007, 19:11:18)
     Copyright (C) 2005 John Hansen.  All Rights Reserved.
Usage error: try 'nqc -help' to display options
uname -a
Linux eip 2.6.17-10-386 #2 Fri Oct 13 18:41:40 UTC 2006 i686 GNU/Linux

Problem:

cat ./error.nqc
task main()
{
int x;
int* y=&x;
*y=x;
int vek[9];
}
nqc error.nqc
# Error: RCX does not support indirect variables
File "error.nqc" ; line 5
#  *y=x;
#  ^
#----------------------------------------------------------
# Error: RCX does not support arrays
File "error.nqc" ; line 6
#  int vek[9];
#      ^^^
#----------------------------------------------------------
# 2 errors during compilation


both support for indirect variables and arrays is specified in
http://bricxcc.sourceforge.net/nqc/doc/NQC_Guide.pdf page 11 and 15

so.. whats the problem?



Message has 1 Reply:
  Re: nqc compilation errors
 
(...) Only the RCX2 firmware supports these features. If you set the target to RCX2 then it will compile. Gus (18 years ago, 14-Jan-07, to lugnet.robotics.rcx.nqc)

4 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