[Xapian-discuss] undefined reference to `Xapian::Document::values_end() const'

Olly Betts olly at survex.com
Fri Jun 25 13:37:01 BST 2010


On Thu, Jun 24, 2010 at 03:08:07PM +0200, Per Jessen wrote:
> Per Jessen wrote:
> 
> > I've got a simple for-loop:
> > 
> > for( v=doc.values_begin(); v!=doc.values_end(); v++ )
> > 
> > going through the values of a document from a search.  I really don't
> > understand why I'm getting this undefined reference?
> 
> I'm working in C++, on Linux, with Xapian 1.2.0.

Is this at link time or run time?

If it is at run time, I suspect you are picking up headers from an older Xapian
version you have installed.  As noted here the headers are installed in the
wrong directory:

http://trac.xapian.org/wiki/ReleaseNotes/1.2.0

Cheers,
    Olly



More information about the Xapian-discuss mailing list