Why symbols of a shared library are not resolved at link time?

前端 未结 6 1115
孤独总比滥情好
孤独总比滥情好 2020-12-19 04:58

This is my 2nd post on this site in my effort to understand the compilation/linking process with gcc. When I try to make an executable, symbols need to be resolved at link t

6条回答
  •  旧时难觅i
    2020-12-19 05:35

    Does adding -z defs when building the library do what you want? If not, check the ld man pages, there are quite a few options on the handling of undefined symbols.

提交回复
热议问题