Subject:
|
Re: Having trouble with -D option
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Fri, 11 Feb 2000 00:14:15 GMT
|
Reply-To:
|
mattdm@+ihatespam+mattdm.org
|
Viewed:
|
1967 times
|
| |
| |
Mark Haye <haye@us.ibm.com> wrote:
> /* nqc program */
> #if (D == 1)
> task main() {}
> #endif
Same with 2.1b3.
FWIW,
#ifdef D
task main() {}
#endif
works as expected. D is getting defined, just not to 1. (Or to any number.)
--
Matthew Miller ---> mattdm@mattdm.org
Quotes 'R' Us ---> http://quotes-r-us.org/
|
|
Message has 1 Reply: | | Re: Having trouble with -D option
|
| Yes, I noticed that too, but I'm trying to program multiple RCXs with the same source, and the symbol is meant to represent the RCX's id, so it must have multiple values. Thanks anyway for the quick response. -- Mark Haye, haye (at) us (dot) ibm (...) (25 years ago, 12-Feb-00, to lugnet.robotics.rcx.nqc)
|
Message is in Reply To:
| | Having trouble with -D option
|
| If I compile this program (named d.nqc): /* nqc program */ #if (D == 1) task main() {} #endif with the command: nqc -DD=1 d.nqc I get the following error: # Error: syntax error in expression File "d.nqc" ; line 2 # #if (D == 1) # ^ #---...--- # 1 (...) (25 years ago, 10-Feb-00, to lugnet.robotics.rcx.nqc)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|