Can a program depend on a library during compilation but not runtime?

前端 未结 10 1815
深忆病人
深忆病人 2020-11-30 18:18

I understand the difference between runtime and compile-time and how to differentiate between the two, but I just don\'t see the need to make a distinction between compile-t

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 18:22

    You need at compile time dependencies which you might need at runtime. However many libraries run without all its possible dependencies. i.e. a libraries which can use four different XML libraries, but only needs one to work.

    Many libraries, need other libraries in turn. These libraries are not needed at compile time but are needed at runtime. i.e. when the code is actually run.

提交回复
热议问题