Ralf Mattes
2014-Feb-12 15:02 UTC
[Xapian-devel] A beginner in "Posting list encoding improvements"
On Wed, Feb 12, 2014 at 03:07:30PM +0000, James Aylett wrote:> On 12 Feb 2014, at 14:58, "Hurricane Tong" <zhangshangtong.cpp at qq.com> wrote: > > > hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp > > You want to use xapian-config-1.3 here, not xapian-config (which will be the installed version, not the trunk version you built).Oh, dear - unless the OP know _exactly_ what he's doing he should remove the distributions devel package to avoid hard-to-debug problems: sudo apt-get purge libxapian-dev> I've just built trunk (on Mac OS, admittedly), and your code compiled and linked fine, and when run created an empty database as expected.The code post4ed works fine on Debian/testing with the distributed devel packages as well. Cheers, RalfD
James Aylett
2014-Feb-12 15:07 UTC
[Xapian-devel] A beginner in "Posting list encoding improvements"
On 12 Feb 2014, at 14:58, "Hurricane Tong" <zhangshangtong.cpp at qq.com> wrote:> hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cppYou want to use xapian-config-1.3 here, not xapian-config (which will be the installed version, not the trunk version you built). I've just built trunk (on Mac OS, admittedly), and your code compiled and linked fine, and when run created an empty database as expected. J -- James Aylett, occasional trouble-maker xapian.org
Hurricane Tong
2014-Feb-13 01:48 UTC
[Xapian-devel] A beginner in "Posting list encoding improvements"
I uninstall xapian1.3 and install xapian-1.2.17 but i still failed hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` demo2.cc /tmp/cc2wsfDJ.o: In function `main': demo2.cc:(.text+0x4a): undefined reference to `Xapian::WritableDatabase::WritableDatabase(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' demo2.cc:(.text+0x73): undefined reference to `Xapian::WritableDatabase::~WritableDatabase()' demo2.cc:(.text+0x98): undefined reference to `Xapian::WritableDatabase::~WritableDatabase()' collect2: ld ?? 1 and hurricanetong at hurricanetong-VirtualBox:~/workspace$ xapian-config --cxxflags --libs -I/usr/local/include -L/usr/local/lib -lxapian ------------------ HurricaneTong,Second Year Undergraduate, School of Computer Science, Fudan University, China. ------------------ Original ------------------ From: "Ralf Mattes";<rm at seid-online.de>; Date: Wed, Feb 12, 2014 11:02 PM To: "James Aylett"<james-xapian at tartarus.org>; Cc: "Hurricane Tong"<zhangshangtong.cpp at qq.com>; "xapian-devel"<xapian-devel at lists.xapian.org>; Subject: Re: [Xapian-devel] A beginner in "Posting list encoding improvements" On Wed, Feb 12, 2014 at 03:07:30PM +0000, James Aylett wrote:> On 12 Feb 2014, at 14:58, "Hurricane Tong" <zhangshangtong.cpp at qq.com> wrote: > > > hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp > > You want to use xapian-config-1.3 here, not xapian-config (which will be the installed version, not the trunk version you built).Oh, dear - unless the OP know _exactly_ what he's doing he should remove the distributions devel package to avoid hard-to-debug problems: sudo apt-get purge libxapian-dev> I've just built trunk (on Mac OS, admittedly), and your code compiled and linked fine, and when run created an empty database as expected.The code post4ed works fine on Debian/testing with the distributed devel packages as well. Cheers, RalfD . -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140213/1bac5368/attachment-0002.html>