Scott Zhang
2011-Apr-28 04:12 UTC
[Xapian-devel] About bild xapian on windows using mingw32
Helllo. I am building xapian on windows using mingw32. The configure process works well. when after I typed 'make' and start compiling. It prompts me: In file included from api/replication.cc:39:0 ./common/realtime.h: In function 'double RealTime::now()': ./common/realtime.h:66:22: error: aggregate 'RealTime::now()::__timeb64 tp' has incomplete type and cannot be defined ./common/realtime.h:67:17: error: '_ftime64' was not declared in this scope. How can I resolve this and get xapian compiled? Thanks. Regards. Scott
Scott Zhang
2011-Apr-28 05:57 UTC
[Xapian-devel] About bild xapian on windows using mingw32
Hello. All. I tried add -D__MSVCRT_VERSION=0x0601 when configure. Now the _ftime64 issue is resolved. The compiling run for a long while and now stop on "closeform.cc" error: 'sysconf' was not declared in this scope. I googled, looks mingw doesn't have 'sysconf'. How do you work around this? Thanks. Regards. Scott On Thu, Apr 28, 2011 at 12:12 PM, Scott Zhang <macromarship at gmail.com> wrote:> Helllo. > ? ?I am building xapian on windows using mingw32. The configure > process works well. when after I typed 'make' and start compiling. > ?It prompts me: > In file included from api/replication.cc:39:0 > ./common/realtime.h: In function 'double RealTime::now()': > ./common/realtime.h:66:22: error: aggregate > 'RealTime::now()::__timeb64 tp' has incomplete type and cannot be > defined > ./common/realtime.h:67:17: error: '_ftime64' was not declared in this scope. > > How can I resolve this and get xapian compiled? > > Thanks. > Regards. > Scott >