gpt4 book ai didi

c++ - 升压 bjam : link result with precompiled library

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:07:18 25 4
gpt4 key购买 nike

我应该在我的 jamroot.jam 文件中放入什么,以便 libAPLibrary.so 与 MyProject 编译的结果相关联?

root  |-MyProject  |   |-jamroot.jam  |  |-AnotherProject      |-lib          |-libAPLibrary.so 

最佳答案

如果库 libAPLibrary.so 已经编译,您应该声明它并将它链接到项目,这样:

lib libAPLibrary : : 
# watch out for empty spaces, they are mandatory
<file>../AnotherProject/lib/libAPLibrary.so ;

exe MyProject
:
# your project sources here
# this is a generic filter but you
# can replace it with file names
[ glob *.c* ]

# external libraries
libAPLibrary
;

关于c++ - 升压 bjam : link result with precompiled library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11537786/

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