c/c++ #include库函数后会使程序变大吗
阿神
阿神 2017-04-17 14:36:33
0
4
606

java import不会使程序变大;
那c/c++ #include 库函数后会使程序变大吗?

阿神
阿神

闭关修行中......

reply all(4)
左手右手慢动作

#include itself does not. What really makes the project bigger is the c, o and lib files in the project.

But there is an exception, that is, if you put the function/method definition that should be placed in c into h, it will still become larger.

In addition, the equivalent of import in Java should be using namespace.

左手右手慢动作

Have a look at http://stackoverflow.com/ques...

小葫芦

You will know after you try it. I remember that the libraries that come with c/c++ are dynamically loaded by default and should not become larger

巴扎黑

The default C library is dynamically linked, but it will definitely increase a bit because there is necessary information for dynamic linking and so on. If you choose a static link library, it will be much larger. In addition, if there are inline functions, macro expansion code, etc., the space will also be increased.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template