开发者

using c library in another c library, linux

Hi All I wrote a static library (libA) that uses another library (libB). How can I link libB to my libA in eclipse (linux)? i cannot find linkage options in project properties, they are not on there usual 开发者_运维技巧place. Thx


Static libraries don't link. They are an archive of object files (.o files). These archives are then taken as arguments during a linking phase, have their object files extracted and linked into the application at that time. As such, static libraries cannot link against anything.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜