Hi,

I've made a quick round and updated the master branch on git to fix those
issues. Whatever concerning streams, the issue is gone. But, 2 issues
remain:

* Some of the errors you were getting were related to fields compression,
which are not working well with my fix. This is Ben's work and I'd rather
leave it up to him to make it work for ASCII builds as well. I fixed
compilation there, but the related tests are failing.
* There is still a link error for ASCII builds I couldn't fix. To bypass it,
for now, comment out the CND_PRECONDITION in the top of
TermInfosWriter::add(int,const TCHAR* ....).

Let us know how it goes.

Itamar. 

-----Original Message-----
From: cel tix44 [mailto:celti...@gmail.com] 
Sent: Monday, November 02, 2009 9:16 AM
To: clucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] Problem compiling 2_3_2 in ASCII mode

Team

I'm having trouble compiling clucene 2_3_2 in ASCII_MODE by using Visual
Studio 2008 v.9.

I downloaded the 2_3_2 branch from GIT and used CMAKE 2.6.4 to configure it,
overwriting defaults with:

CMAKE_USE_RELATIVE_PATHS = TRUE
DISABLE_MULTITHREADING = TRUE
ENABLE_ASCII_MODE = TRUE

With these options (effectively, if _ASCII is defined), building the CL_DEMO
solution throws the errors below.

Apologies for not offering a fix, I'm not able to resolve this myself.

Regards
Celto

Error   13      error C2259:
'lucene::util::SimpleInputStreamReader::Internal::JStreamsBuffer' :
cannot instantiate abstract
class   d:\cl_232\src\core\CLucene\util\Reader.cpp      388     clucene-core
Error   14      error C2664: 'lucene::util::BufferedStreamImpl<T>::read' :
cannot convert parameter 1 from 'const TCHAR *' to 'const wchar_t
*&'     d:\cl_232\src\core\CLucene\util\Reader.cpp      409     clucene-core
Error   16      error C2259:
'lucene::util::FilteredBufferedReader::Internal::JStreamsFilteredBuffer'
: cannot instantiate abstract
class   d:\cl_232\src\core\CLucene\util\Reader.cpp      456     clucene-core
Error   17      error C2664: 'lucene::util::BufferedStreamImpl<T>::read' :
cannot convert parameter 1 from 'const TCHAR *' to 'const wchar_t
*&'     d:\cl_232\src\core\CLucene\util\Reader.cpp      469     clucene-core
Error   25      error C2664: 'lucene_utf8towcs' : cannot convert parameter 1
from 'TCHAR *' to 'wchar_t
*'      d:\cl_232\src\core\CLucene\index\FieldsReader.cpp       299
clucene-core
Error   26      error C2664: 'lucene_utf8towcs' : cannot convert parameter 1
from 'TCHAR *' to 'wchar_t
*'      d:\cl_232\src\core\CLucene\index\FieldsReader.cpp       449
clucene-core
Error   45      error C2664: 'lucene_wcstoutf8string' : cannot convert
parameter 1 from 'const TCHAR *' to 'const wchar_t
*'      d:\cl_232\src\core\CLucene\index\FieldsWriter.cpp       169
clucene-core
Error   46      error C2664: 'lucene_wcstoutf8string' : cannot convert
parameter 1 from 'const TCHAR *' to 'const wchar_t
*'      d:\cl_232\src\core\CLucene\index\FieldsWriter.cpp       176
clucene-core

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the
only developer event you need to attend this year. Jumpstart your developing
skills, take BlackBerry mobile applications to market and stay ahead of the
curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to