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

问题描述 投票:-4回答:1

findpattern.cpp:1:5: error: 'i' does not name a type  ■# i n c l u d e " f i n d p a t t e r n . h " ^ findpattern.cpp:27:2: error: 'D' does not name a type m b i . R e g i o n S i z e , N U L L ) ; ^ findpattern.cpp:83:2: error: 'v' does not name a type

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

c++ g++ mingw-w64
1个回答
2
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.