Experimental Physics and Industrial Control System
If you want to remove the ansi flags put the following line in your
Makefile
CONFORM_CFLAGS_STRICT =
this variable is set = -ansi
by default.
I found this by doing
make -p -n | grep ansi
--
Emmanuel Mayssat
Lyncean Technologies, Inc.
On Sat, 2006-01-28 at 16:19 +0000, Michael Abbott wrote:
> 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.
- References:
- Ansi compiler switch Michael Abbott
- Navigate by Date:
- Prev:
Re: FW: use of SUB record Andrew Johnson
- Next:
Re: enhanced seq record Brian McAllister
- 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:
Ansi compiler switch Michael Abbott
- Next:
mallocMustSucceed( 0 ) non-portable Till Straumann
- 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