【发布时间】:2014-03-31 13:23:01
【问题描述】:
我有一些疑问:
用例:
A static library containing a global variable, static variable, a function
and a class defined
A shared library uses these and hence they are part of the same.
A executable program also uses the same and they are part of the same.
The executable loads the shared library on run time
- windows 和 Linux 有什么不同?
- 共享库可以使用来自可执行文件的静态库对象的东西吗?
- 可执行文件能否使用共享库的静态库对象中的某些内容?
- loader的作用是什么?例如:静态库中的静态库对象是否在共享库和 Linux 上的可执行文件之间共享?
- 共享库是在运行时加载还是加载时加载有什么区别?
【问题讨论】:
-
好吧,没有什么可以阻止您将指向一个库中的变量或函数的指针发送到另一个库以供使用。
标签: c++ linux window shared-libraries static-libraries