why my C++ output executable is so big?

后端 未结 6 720
梦毁少年i
梦毁少年i 2020-12-14 20:31

I have a rather simple C++ project, which uses boost::regex library. The output I\'m getting is 3.5Mb in size. As I understand I\'m statically linking all boost .CPP files,

6条回答
  •  臣服心动
    2020-12-14 20:38

    If you are statically linking then most linkers will only include the objects that are needed.

    3.5Mb is not that big - on a PC system so size could depend on OS etc

提交回复
热议问题