[Xapian-discuss] problem when compiling xapian in windows

Bruno Rezende brunovianarezende at gmail.com
Wed Feb 6 13:56:50 GMT 2008


Hi,

I'm trying to compile the xapian version that I get when execute the
get_xapian.py script, from xappy.

I'm using Microsoft Visual Studio 8

First error:

.\tcpclient.cc(82) : error C3861: 'close': identifier not found
.\tcpclient.cc(94) : error C3861: 'close': identifier not found
.\tcpclient.cc(109) : error C3861: 'close': identifier not found
.\tcpclient.cc(125) : error C3861: 'close': identifier not found
.\tcpclient.cc(139) : error C3861: 'close': identifier not found
.\tcpclient.cc(143) : error C3861: 'close': identifier not found

If I apply the first attached patch the error stops.

Then, comes the second error:

remoteconnection.cc
.\remoteconnection.cc(374) : error C3861: 'msvc_posix_open': identifier not
found
.\remoteconnection.cc(393) : warning C4244: 'argument' : conversion from
'__int64' to 'size_t', possible loss of data
.\remoteconnection.cc(402) : error C2065: 'header' : undeclared identifier
.\remoteconnection.cc(571) : warning C4244: 'argument' : conversion from
'__int64' to 'size_t', possible loss of data
.\remoteconnection.cc(604) : warning C4244: '=' : conversion from '__int64'
to 'size_t', possible loss of data
.\remoteconnection.cc(608) : warning C4244: 'initializing' : conversion from
'const __int64' to 'size_t', possible loss of data
.\remoteconnection.cc(638) : error C3861: 'msvc_posix_open': identifier not
found
tcpclient.cc

If I apply the second patch, then this error also stops. But, then I start
to get errors like:

        link.exe @C:\DOCUME~1\brunore\CONFIG~1\Temp\nm1E1.tmp
libbackend.lib(database.obj) : error LNK2019: unresolved external symbol
"class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> __cdecl join_paths(class std::basic_string<char,struct
std::char_traits<char>,
class std::allocator<char> > const &,class std::basic_string<char,struct
std::ch
ar_traits<char>,class std::allocator<char> > const &)"
(?join_paths@@YA?AV?$basi
c_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV12 at 0@Z) referenced
in
function "void __cdecl Xapian::open_stub(class Xapian::Database *,class
std::bas
ic_string<char,struct std::char_traits<char>,class std::allocator<char> >
const
&)" (?open_stub at Xapian@@YAXPAVDatabase at 1@ABV?$basic_string at DU?$char_traits@
D at std
@@V?$allocator at D@2@@std@@@Z)
libbackend.lib(database.obj) : error LNK2019: unresolved external symbol
"class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char>
> __cdecl calc_dirname(class std::basic_string<char,struct
std::char_traits<char
>,class std::allocator<char> > const &)" (?calc_dirname@@
YA?AV?$basic_string at DU?
$char_traits at D@std@@V?$allocator at D@2@@std@@ABV12@@Z) referenced in function
"voi
d __cdecl Xapian::open_stub(class Xapian::Database *,class
std::basic_string<cha
r,struct std::char_traits<char>,class std::allocator<char> > const &)"
(?open_st
ub at Xapian@@YAXPAVDatabase at 1@ABV?$basic_string at DU?$char_traits at D@std
@@V?$allocato
r at D@2@@std@@@Z)

Can someone help me on this?

-- 
regards,
Bruno


More information about the Xapian-discuss mailing list