如果我只是改变函数的实现,我需要重新编译所有依赖的dll吗? [英] If I just change the implementation of function do I need to Recompile all of the dependent dlls?

查看:62
本文介绍了如果我只是改变函数的实现,我需要重新编译所有依赖的dll吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c ++ DLL中:如果我改变了函数的实现,并且它的标题没有改变,我是否需要重新编译所有相关的dll?

in c++ DLL: if I change the implementation of the function, and it's header does not change, should I need to recompile all of the dependent dlls?

推荐答案

你不应该需要它。界面稳定性的优点是:只要界面保持不变,外部代码就不会受到内部变化的影响。例外情况是,如果函数更改了错误或返回代码的功能。



但是你需要新的dll来调用; - )
You should not need it. It is the advantage of interface stability: as long as the interface stays the same the external code isnt harmed from changes inside. Exception is, if the function has a changed functionality as changed error or return codes.

But you need the new dll to get called ;-)


这篇关于如果我只是改变函数的实现,我需要重新编译所有依赖的dll吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆