Boost logo

Boost :

Subject: [boost] [Tokenizer] Compile error with lots of missing binary operator statments
From: Collin Day (dcday137_at_[hidden])
Date: 2011-10-29 13:19:49


Hi all,

make[1]: Entering directory `/home/collin/projects/Cpp/plugins/PluginFramework/projects/plugin_framework'
mkdir -p build/Debug/GNU-Linux-x86
g++ -c -g -DPF_PLATFORM_LINUX -DAPR_DECLARE_STATIC -DAPU_DECLARE_STATIC -I../../include/ -I../../include/darwin86 -I.. -o build/Debug/GNU-Linux-x86/Path.o Path.cpp
In file included from ../../include/boost/mpl/apply.hpp:23:0,
                 from ../../include/boost/iterator/iterator_facade.hpp:34,
                 from ../../include/boost/iterator/iterator_adaptor.hpp:15,
                 from ../../include/boost/token_iterator.hpp:21,
                 from ../../include/boost/tokenizer.hpp:20,
                 from Path.cpp:4:
../../include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
../../include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from ../../include/boost/mpl/bind.hpp:27:0,
                 from ../../include/boost/mpl/lambda.hpp:18,
                 from ../../include/boost/mpl/apply.hpp:25,
                 from ../../include/boost/iterator/iterator_facade.hpp:34,
                 from ../../include/boost/iterator/iterator_adaptor.hpp:15,
                 from ../../include/boost/token_iterator.hpp:21,
                 from ../../include/boost/tokenizer.hpp:20,
                 from Path.cpp:4:
../../include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
../../include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from ../../include/boost/mpl/lambda.hpp:18:0,
                 from ../../include/boost/mpl/apply.hpp:25,
                 from ../../include/boost/iterator/iterator_facade.hpp:34,
                 from ../../include/boost/iterator/iterator_adaptor.hpp:15,
                 from ../../include/boost/token_iterator.hpp:21,
                 from ../../include/boost/tokenizer.hpp:20,
                 from Path.cpp:4:
../../include/boost/mpl/bind.hpp:364:31: error: missing binary operator before token "("
../../include/boost/mpl/bind.hpp:531:31: error: missing binary operator before token "("
In file included from ../../include/boost/mpl/lambda.hpp:22:0,
                 from ../../include/boost/mpl/apply.hpp:25,
                 from ../../include/boost/iterator/iterator_facade.hpp:34,
                 from ../../include/boost/iterator/iterator_adaptor.hpp:15,
                 from ../../include/boost/token_iterator.hpp:21,
                 from ../../include/boost/tokenizer.hpp:20,
                 from Path.cpp:4:
../../include/boost/mpl/aux_/full_lambda.hpp:230:31: error: missing binary operator before token "("
In file included from ../../include/boost/iterator/iterator_facade.hpp:34:0,
                 from ../../include/boost/iterator/iterator_adaptor.hpp:15,
                 from ../../include/boost/token_iterator.hpp:21,
                 from ../../include/boost/tokenizer.hpp:20,
                 from Path.cpp:4:
../../include/boost/mpl/apply.hpp:138:31: error: missing binary operator before token "("
make[1]: *** [build/Debug/GNU-Linux-x86/Path.o] Error 1
make[1]: Leaving directory `/home/collin/projects/Cpp/plugins/PluginFramework/projects/plugin_framework'
make: *** [.build-impl] Error 2

I looked on the web, and everything that looks remotley like this said
it was a problem with GCC > 4.4, but was fixed in boost 1.37. I have
tried with both gcc 4.4.6 and 4.5.3. I don't think I am missing
anything since it is just an include file, but I could be wrong. any
help would be appreciated. I tried the boost users mailing list with no luck after a couple of days.
This is a more detailed example - it looks as though the same problem repeats for many files.
Would it be appropriate to file a bug if I can't find any answers here?

Thanks!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk