Pallavi Gudipati
2014-Apr-13 14:37 UTC
[Xapian-devel] Adding an external library to Xapian
A linker error is encountered even after following the above steps. ERROR: undefined reference to `Xapian::Trie::Trie()' On Sun, Apr 13, 2014 at 8:00 PM, James Aylett <james-xapian at tartarus.org>wrote:> On 13 Apr 2014, at 15:24, Siddhant Mutha <siddhantmutha at gmail.com> wrote: > > > 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? > > The two modules we are writing will be in the 'include' and 'api' > folders. > > I believe (from a quick inspection of the build system) that: > > * add new external API headers (ie ones that get installed for library > users) to xapianinclude_HEADERS in include/Makefile.mk > > * sources in api/ should be added to lib_src in api/Makefile.mk > > * headers in api/ (which won't be installed for library users) should be > added to noinst_HEADERS in api/Makefile.mk > > That should be enough, providing you're in maintainer mode, which will be > true if you've built from a git checkout. > > J > > -- > James Aylett, occasional trouble-maker > xapian.org > >-- Pallavi Gudipati III Year Undergraduate Computer Science And Engineering IIT Madras -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140413/00afc0f7/attachment-0002.html>
On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com> wrote:> A linker error is encountered even after following the above steps. > ERROR: > undefined reference to `Xapian::Trie::Trie()'Do you have your source tree on github where I can look at what you've changed? Also, that error looks like a link error, but I'd really need to see the entire output (and ideally the command that caused it). Pastebin / github gists are a good way of sending compile output around. J -- James Aylett, occasional trouble-maker xapian.org
Pallavi Gudipati
2014-Apr-13 14:48 UTC
[Xapian-devel] Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following it the error that occurred: http://pastebin.com/cVJrjUZX On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote:> On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com> > wrote: > > > A linker error is encountered even after following the above steps. > > ERROR: > > undefined reference to `Xapian::Trie::Trie()' > > Do you have your source tree on github where I can look at what you've > changed? Also, that error looks like a link error, but I'd really need to > see the entire output (and ideally the command that caused it). Pastebin / > github gists are a good way of sending compile output around. > > J > > -- > James Aylett, occasional trouble-maker > xapian.org > >-- Pallavi Gudipati III Year Undergraduate Computer Science And Engineering IIT Madras -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140413/77906e2a/attachment-0002.html>