0

I am using Opensplice library in my project and everything is working with gcc4. I am would like to compile my project with gcc11 but I get a lot of the same errors in the Opensplice section. For example:

implicitly-declared ‘dds::core::status::SampleRejectedState& dds::core::status::SampleRejectedState::operator=(const dds::core::status::SampleRejectedState&)’ is deprecated

I know that we should define both the assignment operator and copy constructor or neither of them in gcc11. But, how can I fix this issue for Opensplice? Can I build Opensplice again with gcc11 or I should do something else?

1 Answers1

0

To fix this issue, we can do
1- Ask the vendor to fix this issue internally
2- Disable all of these errors by removing the -Werror flag
3- or by adding -Wno-deprecated-copy or Wno-error=depricated-copy if want to keep -Werror flag.