简体   繁体   English

在不更改源文件的情况下重建exe时如何自动链接新的静态库?

[英]How auto link new static library when rebuild exe with no source file change?

EXE: my_app
SOURCE FILE: app.cc
EXTERNAL_STATIC_LIB: liba.a, libb.a

what I want: app.cc not change, liba.a changed relink liba.a when rebuild my_app 我想要的是: app.cc不会更改, liba.a更改,在重建my_app时重新链接liba.a

Static libraries are not getting linked with the exe, instead during building it will become the part of .exe. 静态库未与exe链接,而是在构建过程中它将成为.exe的一部分。 You may need to do the make clean and replace your static libraries (.a) and then do the make, Your .exe will refer the changed static libraries. 您可能需要先清理并替换静态库(.a),然后再进行make,您的.exe将引用更改后的静态库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM