静态编译,就是编译器在编译可执行文件的时候,将可执行文件需要调用的对应静态库(.a或.lib)中的部分提取出来,链接到可执行文件中去,使可执行文件在运行的时候不依赖于动态链接库。
那么如何将静态编译的代码链接到生成的类呢?
So how can I link the statically compiled code to the generated class?
服务实现的标准方法通常假设服务客户具有服务定义文件的静态编译。
A standard approach to service implementations often assumes static compilation of the service definition files with the service consumer.
这样静态编译的代码就可以直接调用方法,即使方法只有到了运行时才能真正实现。
The statically compiled code can then make direct calls to methods, even though the methods won't actually be implemented until runtime.
应用推荐