Wayne Dahl wrote:
I've got an interesting problem that maybe someone out there has run across.
When building genSub with EPICS 3.14.4 and gcc 3.3 on solaris I get the
following error
/home/wdahl/kroot/rel/if/humidity/0-0-1/include/genSubRecord.h:4382: error:
redeclaration
of C++ built-in type `long'
/home/wdahl/kroot/rel/if/humidity/0-0-1/include/genSubRecord.h:4382: error:
parse
error before `!' token
Line 4382 of genSubRecord.h looks like
unsigned long not; /*No. in T*/
My guess is that the "not" in that line is being translated to a "!".
Yup, according to the C++ specification section 2.5 Alternative tokens,
"each alternative token behaves the same as its primary token, except for
its spelling." The alternative tokens that are words are:
bitand -> &
and -> &&
bitor -> |
or -> ||
xor -> ^
compl -> ~
and_eq -> &=
or_eq -> |=
xor_eq -> ^=
not -> ~
not_eq -> !=
We obviously need to reject these (and all the other C and C++ keywords
which are not currently being checked for) as illegal field names. I'll
put that functionality into the R3.15 tools that I'm working on.
Andy Foster will have to rename that genSub field sooner or later.
- Andrew
--
Dear God, I didn't think orange went with purple until I saw
the sunset you made last night. That was really cool. - Caro
- References:
- genSub records with EPICS 3.14.4 and g++ 3.3 - solaris Wayne Dahl
- Navigate by Date:
- Prev:
R3.14.6 sequencer compliation error on hpux Kristi Luchini
- Next:
Bug in 3.14.1 thru 3.14.6? Wayne Dahl
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: genSub records with EPICS 3.14.4 and g++ 3.3 - solaris Matthieu Bec
- Next:
R3.14.6 Sequencer (for hpux) bug Kristi Luchini
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|