Dear Professor Bing, Just to clarify: - the code to replace starts at line 230 of FieldIOHdf5.h - the option to disable treating warnings as errors is in the advanced options of ccmake (press 't' to show these) and is called NEKTAR_ERROR_ON_WARNINGS, which can be set to OFF. Sorry for omitting those rather important details! Kind regards, Chris On 11/07/2020 21:37, Chris Cantwell wrote:
Dear Professor Ding,
I suspect you are seeing this message because you are using a very recent compiler (possibly GCC 9.x or 10.x)?
Recent versions enforce that if a copy constructor of a class is explicitly declared, the copy-assignment operator cannot be implicitly declared. This appears to have been done in the OffsetHelper class (declared in library/LibUtilities/BasicUtils/FieldIOHdf5.h).
Could you try replacing: OffsetHelper(const OffsetHelper &in) : data(in.data), order(in.order), homy(in.homy), homz(in.homz), homs(in.homs) { }
with simply: OffsetHelper(const OffsetHelper &in) = default;
and see if that addresses the error.
Alternatively, you can turn off the 'treat warnings as errors' setting for now to allow compilation to continue.
Kind regards, Chris
On 11/07/2020 02:14, Professor Ding、 wrote:
This email from ztdepyahoo@163.com originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list <https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Dear friends: I use cmake-gui to compile nektar, but i met the following error, i cann't figure it out. Could you please give me some suggestions.
/home/ztdep/Downloads/nektar++-5.0.0/library/LibUtilities/BasicUtils/FieldIOHdf5.cpp:1028:31: error: implicitly-declared ‘Nektar::LibUtilities::FieldIOHdf5::OffsetHelper& Nektar::LibUtilities::FieldIOHdf5::OffsetHelper::operator=(const Nektar::LibUtilities::FieldIOHdf5::OffsetHelper&)’ is deprecated [-Werror=deprecated-copy] 1028 | decompsToOffsets[i] = running; | ^~~~~~~
Professor Ding、 ztdepyahoo@163.com
签名由 网易邮箱大师 <https://mail.163.com/dashi /dlpro.html?from=mail81> 定制
_______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
-- Chris Cantwell Senior Lecturer in Aeronautics Department of Aeronautics Imperial College London South Kensington Campus London SW7 2AZ Tel: +44 (0)20 759 45050 Email: c.cantwell@imperial.ac.uk www.imperial.ac.uk/people/c.cantwell