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