Hurricane Tong
2014-Feb-13 05:52 UTC
[Xapian-devel] 回复: 回复: A beginnerin "Posting list encoding improvements"
In the past hours, I set up a Debian in VBox, and do the same things as I did in Ubuntu, but finally I succeed, hurricanetong at debian:~/WorkSpace$ ls -l database ??? 16 -rw-r--r-- 1 hurricanetong hurricanetong 0 2? 13 13:41 flintlock -rw-r--r-- 1 hurricanetong hurricanetong 28 2? 13 13:41 iamchert -rw-r--r-- 1 hurricanetong hurricanetong 13 2? 13 13:41 postlist.baseA -rw-r--r-- 1 hurricanetong hurricanetong 0 2? 13 13:41 postlist.DB -rw-r--r-- 1 hurricanetong hurricanetong 13 2? 13 13:41 record.baseA -rw-r--r-- 1 hurricanetong hurricanetong 0 2? 13 13:41 record.DB -rw-r--r-- 1 hurricanetong hurricanetong 13 2? 13 13:41 termlist.baseA -rw-r--r-- 1 hurricanetong hurricanetong 0 2? 13 13:41 termlist.DB My Ubuntu is 12.04, 32bit. Maybe I did something wrong to it. And, pay my sincere thanks to all of you, thanks for your patient guide. ------------------ HurricaneTong,Second Year Undergraduate, School of Computer Science, Fudan University, China. ------------------ ???? ------------------ ???: "Olly Betts";<olly at survex.com>; ????: 2014?2?13?(???) ??1:32 ???: "Hurricane Tong"<zhangshangtong.cpp at qq.com>; ??: "Xapian Development"<xapian-devel at lists.xapian.org>; ??: Re: [Xapian-devel] ??? A beginnerin "Posting list encoding improvements" On Thu, Feb 13, 2014 at 10:34:00AM +0800, Hurricane Tong wrote:> I think what i did is the same with you except i use make rather than > make -sj8, and I did as root.It's better to create yourself a user for development work and do as little as possible as root. The root user has the rights to do almost anything, so you can accidentally do a lot of damage (e.g. "rm *" in the wrong directory) and a malicious program can do a lot more damage too. But compiling as root shouldn't make a difference here.> root at hurricanetong-VirtualBox:/home/hurricanetong/workspace# g++ `xapian-config --cxxflags --libs` demo2.cpp > /tmp/ccRXtBxB.o: In function `main': > demo2.cpp:(.text+0x4a): undefined reference to `Xapian::WritableDatabase::WritableDatabase(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' > demo2.cpp:(.text+0x73): undefined reference to `Xapian::WritableDatabase::~WritableDatabase()' > demo2.cpp:(.text+0x98): undefined reference to `Xapian::WritableDatabase::~WritableDatabase()' > collect2: ld ?? 1I don't know why this isn't working, as it does for me and others. Passing the libs last might be worth trying: g++ `xapian-config --cxxflags` demo2.cpp `xapian-config --libs` You can also compile with -v to see more details of the process: g++ -v `xapian-config --cxxflags --libs` demo2.cpp What version of Ubuntu have you installed? Cheers, Olly . -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140213/dbfd3a3a/attachment-0002.html>