EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: S7nodave for EPICS Manual
From: Simon Rose via Tech-talk <tech-talk at aps.anl.gov>
To: White <18019393607 at 163.com>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 22 Feb 2023 15:39:12 +0000

(Sorry, forgot to CC tech-talk)

 

Hi White –

 

Regarding the first question, I’m pretty sure you’re out of luck if your compiler doesn’t  support c++11 as it is an explicit requirement.

 

For the second: if you create a file named CONFIG_SITE.local in the configure directory with the following contents:

 

USR_CXXFLAGS += -std=c++11

 

Then when you run “make” in the module directory it will pick up this definition and modify the c++ flags accordingly. Note that the documentation does say that there is an example file as well.

 

In general the configuration should have a line much like the following in it: https://github.com/epics-modules/asyn/blob/master/configure/CONFIG_SITE#L67 this is what will load your CONFIG_SITE.local when you build the modul.e

 

Cheers,

 

Simon

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of White via Tech-talk <tech-talk at aps.anl.gov>
Reply to: White <18019393607 at 163.com>
Date: Wednesday, 22 February 2023 at 16:08
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: S7nodave for EPICS Manual

 

Hi,

Recently, I was going to use the S7nodave to connect the PLC device,  There was a sentence in the manual that make me confused .

 

The manual said :S7nodave must be compiled with a C++ compiler that supports C++ 11. For some compilers, C++ 11 support is not enabled by default. In this case, you have to add the file configure/CONFIG_SITE.local and append the appropriate compiler options to the USR_CXXFLAGS variable. An example for such a configuration file can be found in configure/EXAMPLE_CONFIG_SITE.local.

 

I have two questions about this sentence:

     1. My computer's compiler does not support C++11, can I install boost insteal of c++ 11. Do I have to install C++ compiler that supports C++ 11

     2. How to add the file configure/CONFIG_SITE.local and append the appropriate compiler options to the USR_CXXFLAGS variable, I haven't see any example.

Thanks

White

  


References:
S7nodave for EPICS Manual White via Tech-talk

Navigate by Date:
Prev: RE: EPICS deb/rpm packaging Abdalla Ahmad via Tech-talk
Next: Re: S7nodave for EPICS Manual Mark Rivers via Tech-talk
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  <20232024 
Navigate by Thread:
Prev: S7nodave for EPICS Manual White via Tech-talk
Next: Re: S7nodave for EPICS Manual Mark Rivers via Tech-talk
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  <20232024 
ANJ, 22 Feb 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·