How to solve -------undefined reference to `__chkstk_ms'-------on mingw

前端 未结 6 852
终归单人心
终归单人心 2020-12-04 00:23

I have just install gcc and g++ on mingw. I wrote a very simple \"hello world\" program to test if the g++ compiler worked. Code:

#include 
u         


        
6条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 01:05

    I had a similar problem, which arose because I foolishly installed a newer version into an old installation. The fix was obvious, I backed up my old installation, then deleted it and done a fresh install. Everything compiled perfectly. Old habits die hard I guess. ;)

提交回复
热议问题