开发者

using c library in another c library, linux

开发者 https://www.devze.com 2023-02-11 05:59 出处:网络
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 u

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

精彩评论

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

关注公众号