Hello all,
>
> I have the following problem with the EPICS cadef.h file:
> This gives this warning with the SUN (C++) compiler:
>
> "./epics.3.12.1/base/include/cadef.h", line 218: Warning (Anachronism): Redefining chid after use in event_handler_args.
> "./epics.3.12.1/base/include/cadef.h", line 218: Note: Type "CC -migration" for more on anachronisms.
> "./epics.3.12.1/base/include/cadef.h", line 257: Warning (Anachronism): Redefining chid after use in exception_handler_args.
>
> and even worse it is a syntax error! with GNU g++ compiler
>
> It compiles, when the name is changed. e.g. chid chidname
>
> Can somebody help me ?!
>
This problem was also detected by Jim Kowalkowski at APS. A
changed cadef.h supporting the new C++ compilers will show up
in EPICS 3.12.2.
In the short term you can fix the problem by replacing all
instances of the field declaration "chid chid" found within
a structure declaration with "struct channel_in_use *chid".
There are only 3 lines that require changes. Function prototypes
do not require modification.
Note that this is only a problem for folks programming with the
more recent C++ compilers and is not a problem for ANSI/traditional
C programs.
Jeff
______________________________________________________________________
Jeffrey O. Hill Internet [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos, NM 87545 USA FAX 505 665 5107
- Navigate by Date:
- Prev:
EPICS RS232 Ian Smith
- Next:
Re: Epics C++ Problems Jeff Hill
- 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
2025
2026
- Navigate by Thread:
- Prev:
Re: Epics C++ Problems Jim B. Kowalkowski
- Next:
Re: Epics C++ Problems Jeff Hill
- 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
2025
2026
|