C++ g++;如何解决这个问题?

C++ g++;如何解决这个问题?,c++,g++,mingw-w64,C++,G++,Mingw W64,findpattern.cpp:1:5:错误:“i”未命名类型  ■# i n c l u e“f i n d p a t e r n.h” ^ findpattern.cpp:27:2:错误:“D”未命名类型 我是b。R e g i o n S i z e,n U L L); ^ findpattern.cpp:83:2:错误:“v”未命名类型 c:\minGW\mingw32\bin\g++-c findpattern.cpp请检查您是否以正确的编码保存了文件。一些Windows编辑器默认为

findpattern.cpp:1:5:错误:“i”未命名类型
 ■# i n c l u e“f i n d p a t e r n.h”
^
findpattern.cpp:27:2:错误:“D”未命名类型
我是b。R e g i o n S i z e,n U L L);
^
findpattern.cpp:83:2:错误:“v”未命名类型


c:\minGW\mingw32\bin\g++-c findpattern.cpp

请检查您是否以正确的编码保存了文件。一些Windows编辑器默认为UTF-16,这可能会导致类似的问题。您需要改为选择UTF-8。

这看起来像是一个UTF-16(甚至在开始时有一个BOM)文件被馈送到gcc。。。这不受支持,请使用UTF-8。