开发者

Library as dependency for another library

I have a big project compiled into 开发者_开发百科libProject.so-file (shared library), I made some modules (shared libraries too) which use code from all libProject. Can I set libProject as dependence for moduleProject.so file? (gcc)


Sure, just link with it like any other library

gcc -L/path/to/lib -lProject -o moduleProject.so


Yes, of course.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜