Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#208 [FreeBSD]: error build

open
nobody
core (32)
5
2012-05-22
2012-05-22
No

[ 9%] Built target clucene-shared
[ 9%] Building CXX object src/core/CMakeFiles/clucene-core.dir/CLucene/queryParser/QueryParser.o

/usr/home/zloidemon/clucene2/work/clucene-core-2.3.3.4/src/core/CLucene/queryParser/QueryParser.cpp: In member function 'lucene::search::Query* lucene::queryParser::QueryParser::fTerm(const TCHAR*)':
/usr/home/zloidemon/clucene2/work/clucene-core-2.3.3.4/src/core/CLucene/queryParser/QueryParser.cpp:1086:15: error: 'wcstoll' was not declared in this scope
*** Error code 1

Stop in /usr/home/zloidemon/clucene2/work/clucene-core-2.3.3.4.
*** Error code 1

Discussion

  • The wcstoll definition in wchar.h is guarded with __LONG_LONG_SUPPORTED macro.

    "The right (tm)" way of enabling it would be to make sure correct compiler options (-std=c99 or whatever) are selected during configuration, but quick hack of adding CXXFLAGS=-D__LONG_LONG_SUPPORTED in port Makefile worked fine for me ...