Meaning of static libraries and shared libraries in Android NDK.

Asked 2 years ago, Updated 2 years ago, 42 views

Hello, I have a question because of the part I write in the Android.mk file when I port the library using NDK. There are times when I write include $(BUILD_SHARED_LIBRARY) Sometimes I write include $(BUILD_STATIC_LIBRARY). From what I understand, it seems to be called a shared library when there are more than two libraries within one application to build with NDK and one library is dependent on another. When you use one library alone, you use it as a static library. I wonder if this is right. Thank you.

android

2022-09-22 21:15

1 Answers

It would be more appropriate to view static libraries as a form of library code included in the binary at compile time, dynamic libraries as a form of information that the binary uses a shared library at compile time and linked by a linker at runtime.


2022-09-22 21:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.