Re: Linking error while separating parser into _def and .cpp files

Exagon <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
I also thought maybe its the same problem Peter Gerell has, but I have the
problem, no matter which boost version I use to compile.

I am getting this error in my project:

In function `bool
boost::spirit::x3::rule<kyle::parser::impl::identifier_class,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> >, false>::parse<__gnu_cxx::__normal_iterator<char*,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> > >,
boost::spirit::x3::context<boost::spirit::x3::skipper_tag,
boost::spirit::x3::char_class&lt;boost::spirit::char_encoding::standard,
boost::spirit::x3::space_tag> const, boost::spirit::x3::unused_type>,
boost::spirit::x3::unused_type const>(__gnu_cxx::__normal_iterator<char*,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> > >&, __gnu_cxx::__normal_iterator<char*,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> > > const&,
boost::spirit::x3::context<boost::spirit::x3::skipper_tag,
boost::spirit::x3::char_class&lt;boost::spirit::char_encoding::standard,
boost::spirit::x3::space_tag> const, boost::spirit::x3::unused_type> const&,
boost::spirit::x3::unused_type, boost::spirit::x3::unused_type const&)
const':
/usr/include/boost/spirit/home/x3/nonterminal/rule.hpp:116: undefined
reference to `bool
kyle::parser::impl::parse_rule<__gnu_cxx::__normal_iterator<char*,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> > >,
boost::spirit::x3::context<boost::spirit::x3::skipper_tag,
boost::spirit::x3::char_class&lt;boost::spirit::char_encoding::standard,
boost::spirit::x3::space_tag> const, boost::spirit::x3::unused_type>,
boost::spirit::x3::unused_type
const>(boost::spirit::x3::rule<kyle::parser::impl::identifier_class,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> >, false>, __gnu_cxx::__normal_iterator<char*,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> > >&, __gnu_cxx::__normal_iterator<char*,
std::__cxx11::basic_string&lt;char, std::char_traits&lt;char>,
std::allocator<char> > > const&,
boost::spirit::x3::context<boost::spirit::x3::skipper_tag,
boost::spirit::x3::char_class&lt;boost::spirit::char_encoding::standard,
boost::spirit::x3::space_tag> const, boost::spirit::x3::unused_type> const&,
boost::spirit::x3::unused_type const&)'
collect2: Fehler: ld gab 1 als Ende-Status zurück

Hope its related to  https://github.com/pgerell/boost_1_61_problem
<https://github.com/pgerell/boost_1_61_problem>  , because then it will get
fixed.
I just had to ask this, because I wasnt sure if I am doing something wrong.



--
View this message in context: http://boost.2283326.n4.nabble.com/Linking-error-while-separating-parser-into-def-and-cpp-files-tp4689690p4689696.html
Sent from the spirit-general mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.