`pkg-config clucene --cflags` is giving me -I/usr/include/clucene/ext, which causes projects using both clucence and boost to fail in compilation because ext/boost and the regular boost headers do not match up.
(Using a system boost-1.49.0): $ echo -en '#include <boost/filesystem.hpp>' | \ g++ -x c++ $(pkg-config libclucene-core --cflags) -c - In file included from /usr/include/boost/filesystem/v3/path.hpp:27:0, from /usr/include/boost/filesystem.hpp:35, from test.cpp:1: /usr/include/boost/system/system_error.hpp:22:45: error: expected initializer before ‘:’ token In file included from /usr/include/CLucene/ext/boost/detail/sp_typeinfo.hpp:103:0, from /usr/include/CLucene/ext/boost/smart_ptr/detail/sp_counted_base_nt.hpp:21, from /usr/include/CLucene/ext/boost/smart_ptr/detail/sp_counted_base.hpp:33, from /usr/include/CLucene/ext/boost/smart_ptr/detail/shared_count.hpp:29, from /usr/include/CLucene/ext/boost/smart_ptr/shared_ptr.hpp:32, from /usr/include/CLucene/ext/boost/shared_ptr.hpp:17, from /usr/include/boost/filesystem/v3/path.hpp:29, from /usr/include/boost/filesystem.hpp:35, from test.cpp:1: /usr/include/c++/4.7/typeinfo:41:37: error: expected ‘}’ before end of line /usr/include/c++/4.7/typeinfo:41:37: error: expected ‘}’ before end of line /usr/include/c++/4.7/typeinfo:41:37: error: expected declaration before end of line Rip out this /ext nonsense. ...and the vim tilde. --- src/core/libclucene-core.pc.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/libclucene-core.pc.cmake b/src/core/libclucene-core.pc.cmake index 0152b25..3d38743 100644 --- a/src/core/libclucene-core.pc.cmake +++ b/src/core/libclucene-core.pc.cmake @@ -7,5 +7,4 @@ Name: libclucene Description: CLucene - a C++ search engine, ported from the popular Apache Lucene Version: @CLUCENE_VERSION_MAJOR@.@CLUCENE_VERSION_MINOR@.@CLUCENE_VERSION_REVISION@.@CLUCENE_VERSION_PATCH@ Libs: -L${prefix}/@LIB_DESTINATION@/ -lclucene-core -Cflags: -I${prefix}/include -I${prefix}/include/CLucene/ext -~ +Cflags: -I${prefix}/include -- 1.7.10.4 ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers