-----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