|
Boost Users : |
Subject: [Boost-users] Compilations problem when including boost/spirit/include/qi.hpp
From: Allan Nielsen (a_at_[hidden])
Date: 2012-07-02 11:05:49
Hi,
I'm trying to use boost spirit for an embedded application running on
mips32 hardware, compiled with a gcc 4.6.3 toolchain.
The toolchain is build with newlib and libstdc++ with -fno-exceptions.
When I try to include iq.hpp I get the following compiler error.
In file included from
/data/anielsen/boost_1_49_0/boost/spirit/home/support/utf8.hpp:17:0,
from
/data/anielsen/boost_1_49_0/boost/spirit/home/support/info.hpp:18,
from
/data/anielsen/boost_1_49_0/boost/spirit/home/qi/domain.hpp:16,
from
/data/anielsen/boost_1_49_0/boost/spirit/home/qi/meta_compiler.hpp:15,
from
/data/anielsen/boost_1_49_0/boost/spirit/home/qi/action/action.hpp:14,
from
/data/anielsen/boost_1_49_0/boost/spirit/home/qi/action.hpp:14,
from /data/anielsen/boost_1_49_0/boost/spirit/home/qi.hpp:14,
from
/data/anielsen/boost_1_49_0/boost/spirit/include/qi.hpp:16,
from ../../vtss_appl/misc/string.cxx:5:
/data/anielsen/boost_1_49_0/boost/type_traits/make_unsigned.hpp: In
instantiation of âboost::detail::make_unsigned_imp<wchar_t>â:
/data/anielsen/boost_1_49_0/boost/type_traits/make_unsigned.hpp:130:1:
instantiated from âboost::make_unsigned<wchar_t>â
/data/anielsen/boost_1_49_0/boost/spirit/home/support/utf8.hpp:35:52:
instantiated from âboost::spirit::utf8_string
boost::spirit::to_utf8(Char) [with Char = wchar_t,
boost::spirit::utf8_string = std::basic_string<char>]â
/data/anielsen/boost_1_49_0/boost/spirit/home/support/info.hpp:54:42:
instantiated from here
/data/anielsen/boost_1_49_0/boost/type_traits/make_unsigned.hpp:39:1:
error: invalid application of âsizeofâ to incomplete type
âboost::STATIC_ASSERTION_FAILURE<false>â
I do know that this is not the most typical setup, but I have had
other problems which was solved just by adding a define, or avoid an
include file.
Any hints will be appreciated
Regards
Allan W. Nielsen
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net