EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Ansi compiler switch
From: Michael Abbott <[email protected]>
To: [email protected]
Date: Sat, 28 Jan 2006 16:19:19 +0000 (GMT)
I have an Epics 3.14.7 driver where I found myself wanting to use the typeof() primitive: as this doesn't appear to be supported as part of ANSI C++ I found it necessary to defeat the -ansi flag that seems to be set by default in the Epics build environment.

My question is this: what is the "correct" way to defeat this flag? Digging through the make system, I discovered that adding the following two lines to my Makefile does the trick:

	CMPLR=LAX
	CXXCMPLR=LAX

(As I recall it, all that matters is that the RHS is not the string STRICT.)

I was wondering *why* this flag is set, but thinking about it I guess the point is that Epics is intended to be thoroughly cross-platform these days. My driver most definitely isn't, so I'm happy to lose the flag, but I'd like to know that I'm not abusing the makefile.
Replies:
Re: Ansi compiler switch Emmanuel Mayssat

Navigate by Date:
Prev: Re: enhanced seq record Benjamin Franksen
Next: Re: enhanced seq record Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: enhanced seq record Brian McAllister
Next: Re: Ansi compiler switch Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·