Here are the files. /include/xapian/trie.h /api/trie.cc *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai http://www.siddhantmutha.com/ <http:/www.siddhantmutha.com/> On Sun, Apr 13, 2014 at 9:33 PM, James Aylett <james-xapian at tartarus.org>wrote:> On 13 Apr 2014, at 16:59, Siddhant Mutha <siddhantmutha at gmail.com> wrote: > > > Oh. The diff file doesn't seem to include the two new files. We're > outside right now. I'll send you the files as soon as we reach in 30-40 > minutes. Also, we're moving to git. > > Great, thanks. > > J > > > -- > James Aylett, occasional trouble-maker > xapian.org > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140413/f7b134c8/attachment-0002.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: trie.cc Type: text/x-c++src Size: 1963 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140413/f7b134c8/attachment-0002.cc> -------------- next part -------------- A non-text attachment was scrubbed... Name: trie.h Type: text/x-chdr Size: 1394 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140413/f7b134c8/attachment-0002.h>
On 13 Apr 2014, at 17:49, Siddhant Mutha <siddhantmutha at gmail.com> wrote:> Here are the files. > /include/xapian/trie.h > /api/trie.ccHave you tried re-configuring your source tree? Because way before you get to compiling the examples the build system will compile trie.cc, which for me didn't work cleanly. (You have code like *it->value, but you mean (*it)->value because -> is higher precedence than dereference *.) What platform are you on? Apologies if I've asked that before. Anyway, your original problem I think is because you have declared a Xapian::Trie destructor in include/xapian/trie.h but you haven't defined it anywhere. Given your constructor doesn't do anything, just removing the destructor declaration should move you forward for the time being. J -- James Aylett, occasional trouble-maker xapian.org
Pallavi Gudipati
2014-Apr-13 17:39 UTC
[Xapian-devel] Adding an external library to Xapian
I am working in Ubuntu 12.04. I have tried re-configuring the source tree too. Removing the destructor stops the error messages for the destructor but the constructor's error persist. ERROR: http://pastebin.com/r0wYNfEs On Sun, Apr 13, 2014 at 10:56 PM, James Aylett <james-xapian at tartarus.org>wrote:> On 13 Apr 2014, at 17:49, Siddhant Mutha <siddhantmutha at gmail.com> wrote: > > > Here are the files. > > /include/xapian/trie.h > > /api/trie.cc > > Have you tried re-configuring your source tree? Because way before you get > to compiling the examples the build system will compile trie.cc, which for > me didn't work cleanly. (You have code like *it->value, but you mean > (*it)->value because -> is higher precedence than dereference *.) What > platform are you on? Apologies if I've asked that before. > > Anyway, your original problem I think is because you have declared a > Xapian::Trie destructor in include/xapian/trie.h but you haven't defined it > anywhere. Given your constructor doesn't do anything, just removing the > destructor declaration should move you forward for the time being. > > 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/166d50da/attachment-0002.html>