我正在使用MinGW编译我的.cpp
,但仍然出现此错误:
In file included from c:\mingw\include\_mingw.h:73:0,
from c:\mingw\include\wchar.h:53,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:44,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\postypes.h:40,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iosfwd:40,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:38,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from file.hpp:6,
from file.cpp:1:
file.cpp: In constructor 'File::File(bool, std::__cxx11::string)':
file.cpp:19:37: error: 'class X' has no member named 'LoadImageA'; did you mean 'LoadImage'?
Image image= m_X.LoadImage("image.png");
这毫无意义,因为您显然可以看到A
中没有LoadImage
。
当我放置A
时,代码会编译,但是我不想在函数名称的末尾添加随机字母。
它看起来像是一个编码问题,但是我不确定。
为什么MinGW无法编译显然不含错误的代码?