<div>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,</div><div><br></div><div><div>hurricanetong@debian:~/WorkSpace$ ls -l database</div><div>总用量 16</div><div>-rw-r--r-- 1 hurricanetong hurricanetong  0  2月 13 13:41 flintlock</div><div>-rw-r--r-- 1 hurricanetong hurricanetong 28  2月 13 13:41 iamchert</div><div>-rw-r--r-- 1 hurricanetong hurricanetong 13  2月 13 13:41 postlist.baseA</div><div>-rw-r--r-- 1 hurricanetong hurricanetong  0  2月 13 13:41 postlist.DB</div><div>-rw-r--r-- 1 hurricanetong hurricanetong 13  2月 13 13:41 record.baseA</div><div>-rw-r--r-- 1 hurricanetong hurricanetong  0  2月 13 13:41 record.DB</div><div>-rw-r--r-- 1 hurricanetong hurricanetong 13  2月 13 13:41 termlist.baseA</div><div>-rw-r--r-- 1 hurricanetong hurricanetong  0  2月 13 13:41 termlist.DB</div></div><div><br></div><div>My Ubuntu is 12.04, 32bit. Maybe I did something wrong to it.</div><div><br></div><div>And, pay my sincere thanks to all of you, thanks for your patient guide.</div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;">HurricaneTong,<div>Second Year Undergraduate,</div><div>School of Computer Science,</div><div>Fudan University, China.</div></div></div><div> </div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Olly Betts";<olly@survex.com>;</div><div><b>发送时间:</b> 2014年2月13日(星期四) 中午1:32</div><div><b>收件人:</b> "Hurricane Tong"<zhangshangtong.cpp@qq.com>; <wbr></div><div><b>抄送:</b> "Xapian Development"<xapian-devel@lists.xapian.org>; <wbr></div><div><b>主题:</b> Re: [Xapian-devel]  回复:  A beginnerin "Posting list encoding improvements"</div></div><div><br></div>On Thu, Feb 13, 2014 at 10:34:00AM +0800, Hurricane Tong wrote:<br>> I think what i did is the same with you except i use make rather than<br>> make -sj8, and I did as root.<br><br>It's better to create yourself a user for development work and do as<br>little as possible as root.  The root user has the rights to do almost<br>anything, so you can accidentally do a lot of damage (e.g.  "rm *" in<br>the wrong directory) and a malicious program can do a lot more damage<br>too.<br><br>But compiling as root shouldn't make a difference here.<br><br>> root@hurricanetong-VirtualBox:/home/hurricanetong/workspace# g++ `xapian-config --cxxflags --libs` demo2.cpp<br>> /tmp/ccRXtBxB.o: In function `main':<br>> demo2.cpp:(.text+0x4a): undefined reference to `Xapian::WritableDatabase::WritableDatabase(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'<br>> demo2.cpp:(.text+0x73): undefined reference to `Xapian::WritableDatabase::~WritableDatabase()'<br>> demo2.cpp:(.text+0x98): undefined reference to `Xapian::WritableDatabase::~WritableDatabase()'<br>> collect2: ld 返回 1<br><br>I don't know why this isn't working, as it does for me and others.<br><br>Passing the libs last might be worth trying:<br><br>g++ `xapian-config --cxxflags` demo2.cpp `xapian-config --libs`<br><br>You can also compile with -v to see more details of the process:<br><br>g++ -v `xapian-config --cxxflags --libs` demo2.cpp<br><br>What version of Ubuntu have you installed?<br><br>Cheers,<br>    Olly<br>.<br></div>