Codeblocks-undefined reference to `GetStockObject@4

出错原因:

程序被解析为UI程序,所以要链接UI设置

解决办法:

找到 settings -> compiler settings -> linker settings -> other link options 处,添加 -mwindows 即可

猜你喜欢

转载自www.cnblogs.com/reverse201/p/10506815.html