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

前端 未结 6 853
终归单人心
终归单人心 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 00:54

    • To compile a .cpp file you have to issue the following command for it to compile. I suggest you use gcc instead of g++, they both work either way.
    • gcc -c Test.cpp -o Test.exe
    • Or with g++
    • g++ -c Test.cpp -o Test.exe

提交回复
热议问题