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: Sequencer configuration file
From: "David A. Slimmer via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Cc: "David A. Slimmer" <slimmer at fnal.gov>
Date: Tue, 18 Apr 2023 17:47:41 +0000

Hi,

After a long hiatus I’m working with EPICS again, so I imagine some things may have changed.

 

I’m working with base-3.15.6 on a linux-arm board.

 

My question is about my sequencer _seq.st file.

 

In it I have this code:

 

%%#include “pbc.h”

%{

char nodename[7] = { “adipi2” };

PBC* pbcPtr = new PBC( nodename );

}%

 

 

Results in the following diagnostic:

 

/usr/bin/gcc  -D_GNU_SOURCE -D_DEFAULT_SOURCE             -DUNIX  -Dlinux     -O3 -g   -Wall            -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include    -I/usr/local/epics/base/include/compiler/gcc -I/usr/local/epics/base/include/os/Linux -I/usr/local/epics/base/include   -I/usr/local/epics/synApps_6_1/support/asyn-R4-36/include   -I/usr/local/epics/synApps_6_1/support/calc-R3-7-3/include   -I/usr/local/epics/synApps_6_1/support/ipac-2-15/include   -I/usr/local/epics/synApps_6_1/support/sscan-R2-11-3/include   -I/usr/local/epics/synApps_6_1/support/seq-2-2-6/include        -c biascntl_seq.c

In file included from ../biascntl_seq.st:98:

../pbc.h:30:1: error: unknown type name ‘using’; did you mean ‘uint’?

using namespace std;

^~~~~

uint

../pbc.h:30:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’

using namespace std;

 

 

Which appears to be the %{ code }% being compiled with gcc instead of g++.

 

Is there a way to configure this via one of the configuration files to have this sequencer code compiled with g++?

 

 

Thanks,

Dave


Replies:
Re: Sequencer configuration file Andrew Johnson via Tech-talk

Navigate by Date:
Prev: About "Identical process variable names on multiple servers" with invalid address Perez Juarez, Emilio (DLSLtd, RAL, LSCI) via Tech-talk
Next: Re: Sequencer configuration file Andrew Johnson 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: Re: About "Identical process variable names on multiple servers" with invalid address Perez Juarez, Emilio (DLSLtd, RAL, LSCI) via Tech-talk
Next: Re: Sequencer configuration file Andrew Johnson 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, 21 Apr 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·