EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  <19951996  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  Index 1994  <19951996  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 
<== Date ==> <== Thread ==>

Subject: Re: Epics C++ Problems
From: [email protected] (Jeff Hill)
To: [email protected]
Cc: [email protected]
Date: Fri, 6 Oct 95 10:02:06 MDT
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  <19951996  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: Epics C++ Problems Jim B. Kowalkowski
Next: Re: Epics C++ Problems Jeff Hill
Index: 1994  <19951996  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·