Veit

A couple of minor problems in the latest update ---

1) When generating code, CMAKE throws this error:
CMake Error at src/core/CMakeLists.txt:194 (add_library):
  Cannot find source file:
    ./CLucene/util/workaround/vc6/operators.cpp

This is because the WORKAROUND folder sits under CLUCENE, not under UTIL.

To fix, open src/core/CMakeLists.txt and remove UTIL\ from line 178 and 179,
so that they read:

IF (${MSVC_VERSION} EQUAL "1200")
  SET(clucene_workaround_Files ./CLucene/workaround/vc6/operators.cpp)
  SET(HEADERS_workaround ./CLucene/workaround/vc6/operators.h)
ENDIF ()

2) SegmentInfos.cpp compiles with these errors:
D:\cl_2334_git_master\src\core\CLucene/workaround/vc6/operators.h(12) :
error C2653: 'std' : is not a class or namespace name
D:\cl_2334_git_master\src\core\CLucene/workaround/vc6/operators.h(12) :
error C2143: syntax error : missing ';' before '&'
...etc.

To fix, open operators.h and add #include <iostream> above std::ostream&, so
that the file reads:
#include <iostream>
std::ostream& operator << (std::ostream& os, __int64 i);

With these corrections, CORE & SHARED compile okay.

3) A question re: _lucene_workaround_vc6_DocumentsWriter_ in operators.h,
please -- the file currently reads:

#ifndef  _lucene_workaround_vc6_DocumentsWriter_
        .... implement the fix for vc6
#endif

In which situation would _lucene_workaround_vc6_DocumentsWriter_ need to be
defined to get the fix for vc6 suppressed ?

Regards
Celto

On Sat, Oct 15, 2011 at 6:56 AM, Veit Jahns <nuncupa...@googlemail.com>wrote:

> 2011/10/10 Veit Jahns <nuncupa...@googlemail.com>:
> >> Microsoft suggests this:
> >> #ifdef _MSC_VER
> >> #if _MSC_VER == 1200
> >> std::ostream& operator<<(std::ostream& os, __int64 i ) // borrowed from
> >> http://support.microsoft.com/kb/168440
> >> {
> >>     char buf[20];
> >>     sprintf(buf,"%I64d", i );
> >>     os << buf;
> >>     return os;
> >> }
> >> #endif
> >> #endif
> >> With either of the 2 fixes above, both CLUCENE_CORE and CLUCENE_SHARED
> >> compile okay.
> >
> > I will then integrate the later one.
>
> Added this workaround to th vc6-branch.
>
> Kind regards,
>
> Veit Jahns
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to