Codeblocks-undefined reference to `GetStockObject@4

出错原因:

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

解决办法:

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

posted @ 2019-03-10 20:10  luvflo  阅读(665)  评论(0)    收藏  举报