Saturday, January 6, 2018

c Same symbols in different libraries and linking order

c Same symbols in different libraries and linking order



???? ??? 2 ????????? ???: test.1 ?? test.2 ? ????? ??????????? ??? ?? ??? ??????? extern "c" void f (); ??????? ??, ??????? ??????????? ?? ??? (????? ?? cout ??????? ?? ???)

????? ?????????? ??????? ????:

????? 1 ???????? ???????: ??? ??? libtest.1.so ?? ??? libtest.2.so ???????? ????? ?? makefile ??? ?? ??? f (); ??? ????? , libtest.1 .so- & gt; f () ??? ???? ???
??? ??? ???????? ??? ???? ????? ???, ?? libtest.2.so- & gt; f () ??

??? ???? ?? >

????? 2 ??????? ???????: ??????? ????? ??????????? ?? ??? ??? ???? ??

????? 3 ???????? ??????
????????? ?? ??? ??? ???????? ??? ?? ??? ???? ??? ??, ?? ??? ???????? ??? ?? ??? ???? ???


???? ?? ????????? ?? ??? ?? ?????? ?? ?????? ??, ?? ????? ???? ????

???? ?????, ?? ??-???????-???? ?? ?????? ???? ??, ???? ?? ?????? ??? ???

?? ?? ????????-??? ???? ?? (?? ???? ??????? ???? ??) , ?? ? ?? ???? ?? ?????? ?? ?????? ..

??, ?? ???? ??? ????????? ???????? ?????????? ???????? ?? ?? ?????? ??? ???? ???? ?? ???? ?? ?????? ???? ???

?? ???? ??? ????????? ?? ????? ?? ??????? ?? ??? ????? ???


??????? ??????:



??????? ???? ????? ?? ?? ??????? ???, ?? ?? ???? ?? ?????? ???? ???:

????? ?? ????? ??????? ????? ????? ?? () ??? test.1 ?? NOT ??? test.2 ?

?????? ??????? ?? ?? ????? ??? < / Code> libs, ??? ?? ???? ?? - f ?? ??? ????? ?? ??? ???? ??, g ?? ???????? ????? ?? (???????? ??? ??)?

????? ????? ?? ?????? ?? ????? ??? ????? ???? ??: ??? test.1 ?? ?? ???? test.2 , ??? ?????? ???? ??, ????? ??????? ?? ??????? 1 ?? ??? ???? ???
????? ?? ????? ??? ???? ??, ?? "?? ?????????" ?????? ??? ???

?? ?????? ??, "??? ????? ?????? ???? ??" (@ ?????? ?? ????? ?????), ????? ?? "????" ?? ???-??? ?????? ???? ??, ???-??? - ?? ???? ???

??? ??, ???? ???? ???? ?????? ?? ?? ????? ?? ?? ??? ??? - ?????

?? ??????? ?? ??????? ???? ?? ??????? ???? ?? ?????? 1 ?? 2 3 ?? ????? ???, ?? ?? ?????? ??? ?? ?? ????????? ???? ??? ?? ?? ??????????? ???? ?? ??? ??????? ?? ??? ?? ??????? ?? ???? ?? ?? ????? ????? ?? ??????? ???????? ??????? ??, ??? ??????? ?????????? ???? ???

3.2 / 3:

?? ????????? ??? ?? ???-?????? ??????? ?? ?? ?? ?? ??????? ???? ?? ?? ????? ?? ????????? ??? ????? ???? ???; ??? ????? ?????? ???? ???



go to link download
download
alternative link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.