(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
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.