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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: Ansi compiler switch
From: Emmanuel Mayssat <emmanuel_mayssat@lynceantech.com>
To: Michael Abbott <michael.abbott@diamond.ac.uk>
Cc: tech-talk@aps.anl.gov
Date: Mon, 30 Jan 2006 10:29:27 -0800
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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·