McStas
Kristian Nielsen
kristian.nielsen at risoe.dk
Mon Nov 23 13:50:02 CET 1998
Dear Laszlo,
> 2. This course would be necessary for me, since I cannot get through
> the 'make install' step of the installation. I get an (obviously) error
> message saying
> "instrument.l", line 278.12: 1506-030 (S) Identifier parse_restricted
> cannot be redeclared.
I believe you found a small bug in McStas. To fix it, make the following
two changes:
Line 278 in file instrument.l reads
static int parse_restricted = FALSE;
remove the sord 'static' so that it reads
int parse_restricted = FALSE;
Line 2088 in file lex.yy.c similarly reads
static int parse_restricted = FALSE;
change it as before to read
int parse_restricted = FALSE;
Depending on your setup, making either just the first or just the second
of these changes may be sufficient. However, if you change first
'instrument.l' and then 'lex.yy.c' you should be safe.
Anyway, try it and let me know if it fixes the problem or not.
- Kristian.
More information about the mcstas-users
mailing list