gpt4 book ai didi

c++ - eclipse CDT : How to relink static libraries without Project Clean>>Project Rebuild

转载 作者:行者123 更新时间:2023-11-28 07:03:09 25 4
gpt4 key购买 nike

是否可以在不重新编译链接静态库的情况下在 eclipse 中重建一个 c++ 项目?我找不到允许您执行此操作的build设置...

我对 C++ 有点陌生。我的理解是,如果你有一个静态库,那么 .o 文件会在最后链接。但是,在每次构建时,都需要重新编译可执行文件的所有 .cpp 文件。

我的问题是:

If none of the .cpp files of the exe were modified, but the static library source was modified, is there a way to link the static library to the exe .o files without rebuilding?

最佳答案

Linker-Settings->Miscellaneous->Other objects 下添加您的静态库。你的可执行文件将被重新链接,以防库更新。没有编译。

关于c++ - eclipse CDT : How to relink static libraries without Project Clean>>Project Rebuild,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22138179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com