Author
anonymous
about 4 years ago
Language
C++
Compiler
gcc HEAD 11.0.0 20210203 (experimental)
Options
Optimization
Boost 1.73.0
C++14
no pedantic
Raw compiler options
unit1.cpp
-DTEST1
Author
anonymous
about 4 years ago
$ g++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++14 unit1.cpp -DTEST1
In file included from /opt/wandbox/boost-1.73.0/gcc-head/include/boost/spirit/home/x3/nonterminal.hpp:10,
from /opt/wandbox/boost-1.73.0/gcc-head/include/boost/spirit/home/x3.hpp:17,
from unit1.h:4,
from prog.cc:2:
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/spirit/home/x3/nonterminal/rule.hpp:179:10: warning: 'bool unit1::parse_rule(unit1::parser1_t, Iterator&, const Iterator&, const Context&, boost::spirit::x3::rule<unit1::u1, long unsigned int>::attribute_type&) [with Iterator = boost::spirit::basic_istream_iterator<char>; Context = boost::spirit::x3::context<main(int, char**)::u2, const boost::spirit::x3::sequence<boost::spirit::x3::literal_string<const char*, boost::spirit::char_encoding::standard, boost::spirit::x3::unused_type>, boost::spirit::x3::rule<unit1::u1, long unsigned int> >, boost::spirit::x3::context<boost::spirit::x3::skipper_tag, const boost::spirit::x3::char_class<boost::spirit::char_encoding::ascii, boost::spirit::x3::space_tag>, boost::spirit::x3::unused_type> >]' used but never defined
179 | bool parse_rule( \
| ^~~~~~~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/seq/for_each.hpp:83:61: note: in expansion of macro 'BOOST_SPIRIT_DECLARE_'
83 | # define BOOST_PP_SEQ_FOR_EACH_M_I(r, macro, data, seq, sz) macro(r, data, BOOST_PP_SEQ_HEAD(seq))
| ^~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/seq/for_each.hpp:78:47: note: in expansion of macro 'BOOST_PP_SEQ_FOR_EACH_M_I'
78 | # define BOOST_PP_SEQ_FOR_EACH_M_IM(r, im) BOOST_PP_SEQ_FOR_EACH_M_I(r, im)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/seq/for_each.hpp:77:43: note: in expansion of macro 'BOOST_PP_SEQ_FOR_EACH_M_IM'
77 | # define BOOST_PP_SEQ_FOR_EACH_M(r, x) BOOST_PP_SEQ_FOR_EACH_M_IM(r, BOOST_PP_TUPLE_REM_4 x)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/seq/for_each.hpp:77:73: note: in expansion of macro 'BOOST_PP_TUPLE_REM_4'
77 | # define BOOST_PP_SEQ_FOR_EACH_M(r, x) BOOST_PP_SEQ_FOR_EACH_M_IM(r, BOOST_PP_TUPLE_REM_4 x)
| ^~~~~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/control/iif.hpp:32:31: note: in expansion of macro 'BOOST_PP_SEQ_FOR_EACH_M'
32 | # define BOOST_PP_IIF_1(t, f) t
| ^
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/repetition/detail/for.hpp:22:37: note: in expansion of macro 'BOOST_PP_FOR_1_C'
22 | # define BOOST_PP_FOR_1(s, p, o, m) BOOST_PP_FOR_1_C(BOOST_PP_BOOL(p(2, s)), s, p, o, m)
| ^~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/cat.hpp:29:34: note: in expansion of macro 'BOOST_PP_FOR_1'
29 | # define BOOST_PP_CAT_I(a, b) a ## b
| ^
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/control/iif.hpp:32:31: note: in expansion of macro 'BOOST_PP_SEQ_FOR_EACH_DETAIL_CHECK_EXEC'
32 | # define BOOST_PP_IIF_1(t, f) t
| ^
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/preprocessor/seq/for_each.hpp:29:53: note: in expansion of macro 'BOOST_PP_SEQ_FOR_EACH_DETAIL_CHECK'
29 | # define BOOST_PP_SEQ_FOR_EACH(macro, data, seq) BOOST_PP_SEQ_FOR_EACH_DETAIL_CHECK(macro, data, seq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/spirit/home/x3/nonterminal/rule.hpp:185:35: note: in expansion of macro 'BOOST_PP_SEQ_FOR_EACH'
185 | #define BOOST_SPIRIT_DECLARE(...) BOOST_PP_SEQ_FOR_EACH( \
| ^~~~~~~~~~~~~~~~~~~~~
unit1.h:13:5: note: in expansion of macro 'BOOST_SPIRIT_DECLARE'
13 | BOOST_SPIRIT_DECLARE(parser1_t);
| ^~~~~~~~~~~~~~~~~~~~
/tmp/ccO3eMgv.o: In function `main':
prog.cc:(.text.startup+0x5e1): undefined reference to `bool unit1::parse_rule<boost::spirit::basic_istream_iterator<char, std::char_traits<char> >, boost::spirit::x3::context<main::u2, boost::spirit::x3::sequence<boost::spirit::x3::literal_string<char const*, boost::spirit::char_encoding::standard, boost::spirit::x3::unused_type>, boost::spirit::x3::rule<unit1::u1, unsigned long, false> > const, boost::spirit::x3::context<boost::spirit::x3::skipper_tag, boost::spirit::x3::char_class<boost::spirit::char_encoding::ascii, boost::spirit::x3::space_tag> const, boost::spirit::x3::unused_type> > >(boost::spirit::x3::rule<unit1::u1, unsigned long, false>, boost::spirit::basic_istream_iterator<char, std::char_traits<char> >&, boost::spirit::basic_istream_iterator<char, std::char_traits<char> > const&, boost::spirit::x3::context<main::u2, boost::spirit::x3::sequence<boost::spirit::x3::literal_string<char const*, boost::spirit::char_encoding::standard, boost::spirit::x3::unused_type>, boost::spirit::x3::rule<unit1::u1, unsigned long, false> > const, boost::spirit::x3::context<boost::spirit::x3::skipper_tag, boost::spirit::x3::char_class<boost::spirit::char_encoding::ascii, boost::spirit::x3::space_tag> const, boost::spirit::x3::unused_type> > const&, unsigned long&)'
collect2: error: ld returned 1 exit status
Exit Code:
1