Boost-bjam:使用预编译库链接结果 [英] Boost-bjam: link result with precompiled library
本文介绍了Boost-bjam:使用预编译库链接结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该将什么放入我的jamroot.jam文件,以便libAPLibrary.so与MyProject编译的结果链接?
What should I put into my jamroot.jam file so that libAPLibrary.so is linked with the result of MyProject compilation?
root
|-MyProject
| |-jamroot.jam
|
|-AnotherProject
|-lib
|-libAPLibrary.so
推荐答案
如果库libAPLibrary.so已经编译,你应该声明它和它对项目的链接,这样:
if the library libAPLibrary.so is already compiled one you should declare it and the link it against the project, this way:
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
;
这篇关于Boost-bjam:使用预编译库链接结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文