从昨天开始,我在VS代码(版本1.34.0,操作系统:Windows10,编译器: MinGW)中收到了这个问题消息this declaration has no storage class or type昨天我试着学习如何使用fstream编写代码(我不知道这是否相关,我认为这可能是问题的根源,因为fstream有一些奇怪的行为)。代码编译完成,我可以运行exe文件而不会出现任何问题。
为了使代码标准化并使其更可移植,我替换了typedef __attribute__((aligned(16))) float aligned_block[4];test.cc:3:9: note: an attribute that appertains to a type-specifier is ignored编辑(2013年4月)
标准中的相关条款为7.6.2