Subject: [Boost-bugs] [Boost C++ Libraries] #13476: Linker error when using Spirit Classic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-03-13 00:37:09
#13476: Linker error when using Spirit Classic
----------------------------------------+----------------------------
Reporter: janis.ruksans@⦠| Owner: Joel de Guzman
Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
Version: Boost 1.60.0 | Severity: Regression
Keywords: spirit classic header only |
----------------------------------------+----------------------------
After upgrading to Boost 1.60, my project using Spirit Classic no longer
builds, failing with a linker error complaining about undefined references
to boost::system::generic_category() and boost::system::system_category().
The minimal test case is:
{{{
#include <boost/spirit/include/classic.hpp>
int
main (int argc, char ** argv)
{
return 0;
}
}}}
which gives results in the following compiler output:
{{{
$ g++ -Wall test.cxx
/tmp/ccpjbwj6.o: In function
`__static_initialization_and_destruction_0(int, int)':
test.cxx:(.text+0x23f): undefined reference to
`boost::system::generic_category()'
test.cxx:(.text+0x249): undefined reference to
`boost::system::generic_category()'
test.cxx:(.text+0x253): undefined reference to
`boost::system::system_category()'
collect2: error: ld returned 1 exit status
}}}
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13476> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-03-13 00:42:31 UTC