我应该把什么放入我的jamroot.jam文件,以便libAPLibrary.so链接到MyProject编译的结果?
根 | -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 ;