boost-1_34_1 in program_options getting compiling error : parse error before >
Hello, I'm using boost.1.34 and when I try to compile I get the following error: /usr/local/include/boost-1_34_1/boost/program_options/parsers.hpp:156: parse error before `>' I also try: ./configure --with-libraries=program_options Make And get the some error. What is my mistake? Thanks, Joaquim P.S. About g++ g++ -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
Salles, Joaquim Campos wrote:
I'm using boost.1.34 and when I try to compile I get the following error:
/usr/local/include/boost-1_34_1/boost/program_options/parsers.hpp:156: *parse error before* `>'
What is my mistake?
Ummm, using a really old gcc?
g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Nat Goodspeed Sent: quinta-feira, 25 de outubro de 2007 16:08 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost-1_34_1 in program_options getting compilingerror : parse error before > Ummm, using a really old gcc? Yes! "Jurassic" and also I'm using also Red Had 7.3 (!?) Joaquim
Salles, Joaquim Campos wrote:
Hello,
I'm using boost.1.34 and when I try to compile I get the following error: ... /usr/local/include/boost-1_34_1/boost/program_options/parsers.hpp:156: parse error before `>'
You did not provide your program, FWIW.
g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
I'm afraid this compiler might be too old. The line in question is not particularly tricky, so I don't know what compiler does not like. - Volodya
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: quinta-feira, 25 de outubro de 2007 16:10 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost-1_34_1 in program_options getting compilingerror : parse error before > Salles, Joaquim Campos wrote: I'm afraid this compiler might be too old. The line in question is not particularly tricky, so I don't know what compiler does not like. ---------------------------------------------- Yes the compiler is too old, but I can't change the version (!) Bellow you can see the output from make of program_options and line of parses.h. Thanks, Joaquim ---------------------------------------------- /** Parse a config file. */ template<class charT> #if ! BOOST_WORKAROUND(__ICL, BOOST_TESTED_AT(700)) BOOST_PROGRAM_OPTIONS_DECL #endif basic_parsed_options<charT> *** line 156 of parses.hpp***> parse_config_file(std::basic_istream<charT>&, const options_description&); ----------------------------------------------- [root@devel73 boost_1_34_1]# make 1>erro.lst 2>&1 ./tools/jam/src/bin.linuxx86/bjam --user-config=user-config.jam --with-program_options ...patience... ...found 546 targets... ...updating 68 targets... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/config_ file.o In file included from libs/program_options/src/config_file.cpp:10: boost/program_options/detail/config_file.hpp:118: parse error before `<' boost/program_options/detail/config_file.hpp:126: parse error before `>' boost/program_options/detail/config_file.hpp:141: parse error before `<' boost/program_options/detail/config_file.hpp:141: confused by earlier errors, bailing out "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/config _file.o" "libs/program_options/src/config_file.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/config_ file.o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/options _description.o In file included from libs/program_options/src/options_description.cpp:13: boost/program_options/parsers.hpp:156: parse error before `>' "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/option s_description.o" "libs/program_options/src/options_description.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/options _description.o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/parsers .o In file included from libs/program_options/src/parsers.cpp:11: boost/program_options/parsers.hpp:156: parse error before `>' In file included from libs/program_options/src/parsers.cpp:15: boost/program_options/detail/config_file.hpp:118: parse error before `<' boost/program_options/detail/config_file.hpp:126: parse error before `>' boost/program_options/detail/config_file.hpp:141: parse error before `<' boost/program_options/detail/config_file.hpp:141: confused by earlier errors, bailing out "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/parser s.o" "libs/program_options/src/parsers.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/parsers .o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/variabl es_map.o In file included from libs/program_options/src/variables_map.cpp:9: boost/program_options/parsers.hpp:156: parse error before `>' "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/variab les_map.o" "libs/program_options/src/variables_map.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/variabl es_map.o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/utf8_co decvt_facet.o In file included from libs/detail/utf8_codecvt_facet.cpp:13, from libs/program_options/src/utf8_codecvt_facet.cpp:15: boost/detail/utf8_codecvt_facet.hpp:81:18: locale: No such file or directory "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/utf8_c odecvt_facet.o" "libs/program_options/src/utf8_codecvt_facet.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/utf8_co decvt_facet.o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/convert .o libs/program_options/src/convert.cpp:8:18: locale: No such file or directory libs/program_options/src/convert.cpp:11:18: locale: No such file or directory In file included from boost/program_options/detail/utf8_codecvt_facet.hpp:19, from libs/program_options/src/convert.cpp:19: boost/detail/utf8_codecvt_facet.hpp:81:18: locale: No such file or directory "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/conver t.o" "libs/program_options/src/convert.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/convert .o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/winmain .o In file included from libs/program_options/src/winmain.cpp:7: boost/program_options/parsers.hpp:156: parse error before `>' "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -I"." -c -o "bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/winmai n.o" "libs/program_options/src/winmain.cpp" ...failed gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi/winmain .o... ...skipped <pbin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi>libbo ost_program_options-gcc296-mt-d-1_34_1.so.1.34.1 for lack of <pbin.v2/libs/program_options/build/gcc-2.96/debug/threading-multi>confi g_file.o... gcc.compile.c++ bin.v2/libs/program_options/build/gcc-2.96/release/threading-multi/confi g_file.o ...interrupted ...failed updating 7 targets... ...skipped 1 target... Not all Boost libraries built properly.
Salles, Joaquim Campos wrote:
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: quinta-feira, 25 de outubro de 2007 16:10 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost-1_34_1 in program_options getting compilingerror : parse error before >
Salles, Joaquim Campos wrote:
I'm afraid this compiler might be too old. The line in question is not particularly tricky, so I don't know what compiler does not like.
----------------------------------------------
Yes the compiler is too old, but I can't change the version (!)
Bellow you can see the output from make of program_options and line of parses.h.
Well, unfortunately I have no idea how to adapt to that compiler. - Volodya
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: quinta-feira, 25 de outubro de 2007 16:43 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost-1_34_1 in program_options gettingcompilingerror : parse error before > Well, unfortunately I have no idea how to adapt to that compiler. - Volodya Other "solution" is to update the compiler ... Thanks for the help, Joaquim
participants (3)
-
Nat Goodspeed
-
Salles, Joaquim Campos
-
Vladimir Prus