<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:'Microsoft YaHei UI',Calibri,'Segoe UI',Meiryo,'Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div> </div><div>Hi All:</div><div> </div><div>I have some questions when writing a lib with libsmbclient-dev ,my target environment is  on any linux system.</div><div> </div><div>1            I want to static link libsmbclient.a instead of using libsmbclient.so, but I got a lot of error , am I able to use libsmbclient-dev using static link?</div><div> </div><div>2            I found that “smbtree” command is more stable in finding all those domains and servers than “smb://” , am I right? why?</div><div> </div><div>3             so I used pipe run way to call “smbtree” command to get all the servers , but that requires installing samba-common ,can anybody tell me which part  of samba source code is for “smbtree” feature?  </div><div> </div><div>Thank you very much!!</div></div></body></html>