Error while setting up tests in xapian-letor

Ayush Tomar <[email protected]>
Newsgroups gmane.comp.search.xapian.devel
Message-ID <CAPx_PWkhdkS46oonEF=smjxyOZm9D3TORB3ADFO=9KUgXxrPJA@mail.gmail.com>
Hello,

While setting up tests module for letor (in xapian-letor/tests; I copied
the entire tests folder from xapian-core), I am getting build errors of the
following type:

g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../common -I../include -I../include
> -I./harness -I../../xapian-core/include  -Wall -W -Wredundant-decls
> -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security
> -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wshadow -Wstrict-overflow=1
> -Winit-self -Wmissing-declarations -Werror -fvisibility=hidden -g -O2
> -std=gnu++11 -MT harness/cputimer.o -MD -MP -MF $depbase.Tpo -c -o
> harness/cputimer.o harness/cputimer.cc &&\
> mv -f $depbase.Tpo $depbase.Po
> In file included from harness/cputimer.cc:25:
> In file included from ./harness/testsuite.h:29:
> In file included from ../common/output.h:39:
> ../../xapian-core/include/xapian/database.h:29:3: error: "Never use
> <xapian/database.h> directly; include <xapian.h> instead."
> # error "Never use <xapian/database.h> directly; include <xapian.h>
> instead."


Could you please suggest a workaround for this?


----------------------------------------------------------------------------
Kind Regards,
Ayush Tomar | My Webpage <http://ayshtmr.xyz> | LinkedIn
<https://in.linkedin.com/in/ayushtomar>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.