<div dir="ltr"><span style="font-size:12.8px">/usr/lib/x86_64-linux-gnu/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">libprotobuf.a was a stale entry and after cleaning it up, I am able to successfully compile/link. Thanks. Saran. </span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 8, 2016 at 1:22 AM, saran nath <span dir="ltr"><<a href="mailto:sarannath39@gmail.com" target="_blank">sarannath39@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am new to this project. I have almost compiled everything but failing in linking I think. </div><div><span class="m_-7613439337085781911gmail-s1"><br></span></div><div><span class="m_-7613439337085781911gmail-s1">Linking </span><span class="m_-7613439337085781911gmail-s2">build/libns3-dev-ndnSIM-debug.<wbr>so</span><br></div><div>
<p class="m_-7613439337085781911gmail-p2"><span class="m_-7613439337085781911gmail-s2">/usr/bin/ld: /usr/lib/x86_64-linux-gnu/<wbr>libprotobuf.a(common.o): relocation R_X86_64_32S against `_<wbr>ZTVN6google8protobuf7ClosureE' can not be used when making a shared object; recompile with -fPIC</span></p>
<p class="m_-7613439337085781911gmail-p2"><span class="m_-7613439337085781911gmail-s2">/usr/lib/x86_64-linux-gnu/<wbr>libprotobuf.a: error adding symbols: Bad value</span></p>
<p class="m_-7613439337085781911gmail-p2"><span class="m_-7613439337085781911gmail-s2">collect2: error: ld returned 1 exit status</span></p>
<p class="m_-7613439337085781911gmail-p3">Your suggestion to remove this error will help me. <span class="HOEnZb"><font color="#888888"><span class="m_-7613439337085781911gmail-s2"></span></font></span></p><span class="HOEnZb"><font color="#888888"><p class="m_-7613439337085781911gmail-p3">Saran.</p></font></span></div></div>
</blockquote></div><br></div>