在easyx.h中将void *__imp___iob_func=0注释掉报错EasyX.GraphWnd.cpp:(.text+0x198c): undefined reference to `__imp___iob_func'
#pragma once
//void *__imp___iob_func=0; //练习添加的
ifndef WINVER
#define WINVER 0x0400 // Specifies that the minimum required platform is Windows 95 and Windows NT 4.0.
#endif
而不将其注释掉编译时报错
easyx.h:11: multiple definition of `__imp___iob_func'; CMakeFiles\game.dir/objects.a(drawGame.cpp.obj):E:/x86_64-14.2.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/x86_64-w64-mingw32/include/easyx.h:11: first defined here