Hi:
When I try to build clucene from git master branch on linux
(specifically ubuntu 10.04) with gcc, I get the following error.
/home/ajoy/luc/clucene-git/clucene/src/core/CLucene/search/spans/TermSpans.cpp:
In member function ‘virtual bool lucene::search::spans::TermSpans::next()’:
/home/ajoy/luc/clucene-git/clucene/src/core/CLucene/search/spans/TermSpans.cpp:38:
error: ‘INT_MAX’ was not declared in this scope
/home/ajoy/luc/clucene-git/clucene/src/core/CLucene/search/spans/TermSpans.cpp:
In member function ‘virtual bool
lucene::search::spans::TermSpans::skipTo(int32_t)’:
/home/ajoy/luc/clucene-git/clucene/src/core/CLucene/search/spans/TermSpans.cpp:58:
error: ‘INT_MAX’ was not declared in this scope
/home/ajoy/luc/clucene-git/clucene/src/core/CLucene/search/spans/TermSpans.cpp:
In member function ‘virtual TCHAR*
lucene::search::spans::TermSpans::toString() const’:
/home/ajoy/luc/clucene-git/clucene/src/core/CLucene/search/spans/TermSpans.cpp:82:
error: ‘INT_MAX’ was not declared in this scope
make[2]: ***
[src/core/CMakeFiles/clucene-core.dir/CLucene/search/spans/TermSpans.o]
Error 1
make[1]: *** [src/core/CMakeFiles/clucene-core.dir/all] Error 2
The 'limits.h' is not included for getting INT_MAX , after including the
same it is building fine. Is it due to any configure problem, but configure
did not complain of anything.
regards,
ajoy
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers