[Discuss OpenCPI] OpenCPI v2.0.0 get/setProperty() errors

From: Brian Padalino <bpadalino_at_gmail.com>
Date: Wed, 07 Oct 20 19:07:15 -0400

I am trying to compile a program that used to work in OpenCPI v1.7.0, but
appears to error out with lots of errors regarding dereferencing a pointer
for property access. Specifically (worker is tgc_proxy.rcc):

In file included from tgc_proxy.cc:1:0:
gen/tgc_proxy-worker.hh: In member function ‘const char*
Tgc_proxyWorkerTypes::Tgc_proxyWorkerBase::Slave1::getProperty_SPI_MUX_OVERRIDE(std::__cxx11::string&,
OCPI::API::AccessList&, OCPI::API::PropertyOptionList&,
OCPI::API::PropertyAttributes*)’:
gen/tgc_proxy-worker.hh:118:16: error: request for member ‘getProperty’ in
‘((Tgc_proxyWorkerTypes::Tgc_proxyWorkerBase::Slave1*)this)->Tgc_proxyWorkerTypes::Tgc_proxyWorkerBase::Slave1::<anonymous>.OCPI::RCC::RCCUserSlave::m_worker’,
which is of pointer type ‘OCPI::API::Worker*’ (maybe you meant to use ‘->’
?)
       m_worker.getProperty(0u, val, list, options, attrs);

I believe this is all in generated code, so I am not sure how I could have
screwed anything up?

Any ideas or suggestions would be appreciated.

Thanks,
Brian


Received on Wed Oct 07 2020 - 23:07:15 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT