MENU

Fun & Interesting

Static and Dynamic Linking on Linux with gcc

embeddedarmdev 51,022 lượt xem 4 years ago
Video Not Working? Fix It Now

This video explains details for how static and dynamic linking works on Linux systems when compiling with GCC.

One thing not mentioned in the video is that when linking statically using the -static option, the linker will look for a static archive (.a) file. For example, when linking statically with libc, it will look for libc.a instead of libc.so. You won't be able to link statically unless there is a static archive of your library available.

Comment