boost libraries and gcc-2.95 on linux
Hello! Are compiler requirements equal across all boost libraries? I've tried to statically link against boost_regex, boost_signals and boost_filesystem and last one fails to compile saying: /opt/boost_1_34_0/boost/filesystem/path.hpp:615: syntax error before `&' /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `::basic_ostream' undeclared (first use here) /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `Path' is not a class or namespace /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `string_type' is not a class or namespace /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `value_type' is not a class or namespace /opt/boost_1_34_0/boost/filesystem/path.hpp:617: using `typename' outside of template /opt/boost_1_34_0/boost/filesystem/path.hpp:617: parse error before `,' /opt/boost_1_34_0/boost/filesystem/path.hpp:619: ANSI C++ forbids declaration `operator <<' with no type etc ... While signals and regex compile cleanly. My Jamroot looks like: BOOST_PATH = <path-to-boost> ; project : requirements <include>$(BOOST_PATH) <threading>multi lib boost-signals : [ glob $(BOOST_PATH)/libs/signals/src/*.cpp ] : <link>static ; ... exe boost-test : main.cpp boost-signals ... ; Does 2.95 gcc compiler supported? Thanks.
on Mon Jul 16 2007, "Dmitry Teslenko"
Hello! Are compiler requirements equal across all boost libraries?
Nope
I've tried to statically link against boost_regex, boost_signals and boost_filesystem and last one fails to compile saying:
/opt/boost_1_34_0/boost/filesystem/path.hpp:615: syntax error before `&' /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `::basic_ostream' undeclared (first use here) /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `Path' is not a class or namespace /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `string_type' is not a class or namespace /opt/boost_1_34_0/boost/filesystem/path.hpp:617: `value_type' is not a class or namespace /opt/boost_1_34_0/boost/filesystem/path.hpp:617: using `typename' outside of template /opt/boost_1_34_0/boost/filesystem/path.hpp:617: parse error before `,' /opt/boost_1_34_0/boost/filesystem/path.hpp:619: ANSI C++ forbids declaration `operator <<' with no type etc ...
While signals and regex compile cleanly.
Does 2.95 gcc compiler supported? Thanks.
It is supported by some libraries -- mostly older ones. Many newer libraries are being written without support for nonconforming compilers that are over 6 years old ;-) -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
on Mon Jul 16 2007, "Dmitry Teslenko"
Hello!
On 16/07/07, David Abrahams
wrote: It is supported by some libraries -- mostly older ones. Many newer libraries are being written without support for nonconforming compilers that are over 6 years old ;-)
Well, I see. Is it documented somewhere?
Not really. Normally, if someone were running the regression tests against 2.95, we'd see the results here: http://engineering.meta-comm.com/boost-regression/1_34_0/user/summary_releas... ...hmm... There is some useful information in http://boost.org/status/explicit-failures-markup.xml If you can decipher it ;-) Search for 2.95 and you'll see the tests that are expected to fail. Most other places, you can expect 2.95 to be supported. However, new libraries in 1.34 may have never been marked up for 2.95 The best way to find out what works is to run the regression tests yourself: http://www.boost.org/tools/regression/xsl_reports/runner/instructions.html -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
participants (2)
-
David Abrahams
-
Dmitry Teslenko