<div dir="ltr">A linker error is encountered even after following the above steps.<div><div style>ERROR:</div><div> undefined reference to `Xapian::Trie::Trie()'</div></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Apr 13, 2014 at 8:00 PM, James Aylett <span dir="ltr"><<a href="mailto:james-xapian@tartarus.org" target="_blank">james-xapian@tartarus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 13 Apr 2014, at 15:24, Siddhant Mutha <<a href="mailto:siddhantmutha@gmail.com">siddhantmutha@gmail.com</a>> wrote:<br>
<br>
> We are writing a new module which needs to be added to the Xapian source. For this, what modifications are to be made to the Makefile?<br>
> The two modules we are writing will be in the 'include' and 'api' folders.<br>
<br>
</div>I believe (from a quick inspection of the build system) that:<br>
<br>
* add new external API headers (ie ones that get installed for library users) to xapianinclude_HEADERS in include/Makefile.mk<br>
<br>
* sources in api/ should be added to lib_src in api/Makefile.mk<br>
<br>
* headers in api/ (which won't be installed for library users) should be added to noinst_HEADERS in api/Makefile.mk<br>
<br>
That should be enough, providing you're in maintainer mode, which will be true if you've built from a git checkout.<br>
<span class="HOEnZb"><font color="#888888"><br>
J<br>
<br>
--<br>
James Aylett, occasional trouble-maker<br>
<a href="http://xapian.org" target="_blank">xapian.org</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif">Pallavi Gudipati</span><br style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif">
<span style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif">III Year Undergraduate</span><br style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif"><span style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif">Computer Science And Engineering</span><br style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif">
<span style="color:rgb(0,0,153);font-family:trebuchet ms,sans-serif">IIT Madras</span><br></div>
</div>