我已阅读有关静态和动态库的信息。我的问题有点具体
dlopen dlclose:
Benifit of dlopen is we can start the EXE with out
loading the necessary libraries at the begining. Only when we
need we will load the libratries and unload it from the memory.
这是动态链接库的行为。
我的问题是如果我链接库 libUtlities
ld -o EXE main.o -lUtilities
当我运行 EXE 时,libUtlities 将在我第一次使用那里的功能之前加载到内存中
which i observed in dbx (Solaris debugger)
But will not contribute to the size of the EXE.
1.那么是静态链接还是动态链接。?