开发者

Library as dependency for another library

开发者 https://www.devze.com 2022-12-26 00:08 出处:网络
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

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

精彩评论

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