GCC C++ “Hello World” program -> .exe is 500kb big when compiled on Windows. How can I reduce its size?

前端 未结 14 2432
遇见更好的自我
遇见更好的自我 2020-11-27 04:29

I just recently started learning C++ - I am using nuwen\'s version of MingW on Windows, using NetBeans as an IDE (I have also MSDN AA Version of MSVC 2008, though I don\'t u

14条回答
  •  忘掉有多难
    2020-11-27 04:57

    You get the C++ standard library, and other stuff I guess, statically linked in as mingw has its own implementation of these libraries.

    Don't worry so much about it, when you make more complex program, the size won't grow accordingly.

提交回复
热议问题