Hello,
When compiling Copperspice 1.8.1 on Windows 11 with MSVC 2022 (compiling 2019 project) I get the following error related to CS_OBJECT
warning C5030: attribute 'gnu::used' is not recognized
class FileSelectionWidget : public QWidget
{
CS_OBJECT(FileSelectionWidget)
...
}
Where can I find this defined in the source?
Thanks,
Jeff
PS: Thanks for CopperSpice!
MSVC 2019 Compiler Warnings
Re: MSVC 2019 Compiler Warnings
1 Are you trying to build CopperSpice with MSVC 2022 and your application with MSVC 2019?MSVC 2022 (compiling 2019 project
2 As a side note, MSVC needs everything built in either debug or release. Mixing the two does not always work as expected.
3 Compilers are required to ignore attributes they do not recognize or handle. We are not seeing any warnings about this attribute in our CI testing on MSVC. Can you let us know which options you have turned on when building CS and if this shows up in both versions of MSVC you are using.warning C5030: attribute 'gnu::used' is not recognized
Barbara