Dear Soliday,
it took me a while to know why I don't get:
Code: Select all
-I../../../../../../epics/extensions/include
It seems that the compilation output info changed between epics base 7.0.5 and 7.0.6, (and the original error message that I posted was with epics base 7.0.7). You might be compiling with epics base <= 7.0.5, right ?
Even so, I still have an error when compiling with epics 7.0.5. It might be also the order in which I compile, but, I only will be able to check it until next week. Do you have any suggestion ?
Best regards,
o
Code: Select all
make[1]: Entering directory `~/elegant.2022.2.0/elegant_compilation/epics/extensions/src/oagca/O.linux-x86_64'
/usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -I../../../../base/include -I../../../../base/include/os/Linux -DACCESS_SECURITY -D_NO_PROTO -I../../../src/SDDS/lzma -fpermissive -mtune=generic -m64 -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I../../../../base/include/compiler/gcc -I../../../../base/include/os/Linux -I../../../../base/include -I../../../include -c ../cavput.cc
/usr/bin/gcc -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -Wall -Werror-implicit-function-declaration -I../../../../base/include -I../../../../base/include/os/Linux -DACCESS_SECURITY -D_NO_PROTO -I../../../src/SDDS/lzma -mtune=generic -m64 -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I../../../../base/include/compiler/gcc -I../../../../base/include/os/Linux -I../../../../base/include -I../../../include -c ../pvMultList.c
/usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -I../../../../base/include -I../../../../base/include/os/Linux -DACCESS_SECURITY -D_NO_PROTO -I../../../src/SDDS/lzma -fpermissive -mtune=generic -m64 -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I../../../../base/include/compiler/gcc -I../../../../base/include/os/Linux -I../../../../base/include -I../../../include -c ../pvaSDDS.cc
../pvaSDDS.cc: In function 'void ConnectPVA(PVA_OVERALL*, double)':
../pvaSDDS.cc:334:168: error: no matching function for call to 'epics::pvaClient::PvaClientMultiChannel::create(epics::pvaClient::PvaClientPtr&, epics::pvData::shared_vector<const std::basic_string<char>, void>&, const char [4], long int&, epics::pvData::shared_vector<const std::basic_string<char>, void>&)'
pva->pvaClientMultiChannelPtr[0] = epics::pvaClient::PvaClientMultiChannel::create(pva->pvaClientPtr, pva->pvaChannelNamesTop, "pva", numInternalPVs, constProvider);
^
../pvaSDDS.cc:334:168: note: candidate is:
In file included from ../pvaSDDS.h:2:0,
from ../pvaSDDS.cc:1:
../../../../base/include/pv/pvaClientMultiChannel.h:72:37: note: static epics::pvaClient::PvaClientMultiChannelPtr epics::pvaClient::PvaClientMultiChannel::create(const PvaClientPtr&, const epics::pvData::shared_vector<const std::basic_string<char>, void>&, const string&, size_t)
static PvaClientMultiChannelPtr create(
^
../../../../base/include/pv/pvaClientMultiChannel.h:72:37: note: candidate expects 4 arguments, 5 provided
../pvaSDDS.cc:364:179: error: no matching function for call to 'epics::pvaClient::PvaClientMultiChannel::create(epics::pvaClient::PvaClientPtr&, epics::pvData::shared_vector<const std::basic_string<char>, void>&, const char [4], long int&, epics::pvData::shared_vector<const std::basic_string<char>, void>&)'
pva->pvaClientMultiChannelPtr[pva->numMultiChannels - 1] = epics::pvaClient::PvaClientMultiChannel::create(pva->pvaClientPtr, constNames, "pva", numInternalPVs, constProvider);
^
../pvaSDDS.cc:364:179: note: candidate is:
In file included from ../pvaSDDS.h:2:0,
from ../pvaSDDS.cc:1:
../../../../base/include/pv/pvaClientMultiChannel.h:72:37: note: static epics::pvaClient::PvaClientMultiChannelPtr epics::pvaClient::PvaClientMultiChannel::create(const PvaClientPtr&, const epics::pvData::shared_vector<const std::basic_string<char>, void>&, const string&, size_t)
static PvaClientMultiChannelPtr create(
^
../../../../base/include/pv/pvaClientMultiChannel.h:72:37: note: candidate expects 4 arguments, 5 provided
make[1]: *** [pvaSDDS.o] Error 1
make[1]: Leaving directory `/nfs/tegile/work/sources/physmach/blanco-garcia/progs/elegant.2022.2.0/elegant_compilation/epics/extensions/src/oagca/O.linux-x86_64'
make: *** [install.linux-x86_64] Error 2
P.S. In the first message I edited by hand the line -I/---/elegant.2022.2.0/elegant_compilation/epics/extensions/include to eliminate the absolute path and replace it with ---.