[Error] ld returned 1 exit status
TCHAR szClassName[] = TEXT("elsfk");WNDCLASS ELS = {0} ;
ELS.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); //窗口背景颜色为白色(这里一直报错,如果将其注释掉,可以运行)
ELS.hCursor = LoadCursor(NULL,IDC_ARROW); //窗口箭头光标
ELS.hIcon = NULL; //窗口图标为空
ELS.hInstance = hInstance; //当前实例句柄
ELS.lpfnWndProc = WndProc; //窗口处理函数
ELS.lpszClassName = szClassName; //窗口类型名
ELS.style = CS_HREDRAW | CS_VREDRAW; //窗口类的风格(垂直,水平)
GetStockObject这里报错
俄罗斯方块.cpp:(.text+0x56): undefined reference to `__imp_GetStockObject'
[Error] ld returned 1 exit status
不懂了,查了好久,求大佬解答,先谢过了