Re: Linking error when changing > to >>
Larry Evans <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 11/16/2016 07:37 PM, Larry Evans wrote: > On 11/16/2016 05:18 PM, Exagon wrote: >> Is there any workaround for this bug? >> I am currently stuck with my project because of this :( >> Greetings Exagon >> >> > What about the one shown here: > > https://github.com/cppljevans/linker_error_example/blob/master/types.cpp#L85 > > In short, it takes the error message produced by the > linker, then provides the parse_rule the linker > needs (line 61) then forwards the call(line 85) > to the parse_rule generated by the BOOST_SPIRIT_INSTANTIATE > earlier in the code (line 7). > Or even simpler, use Seth's method of just doing what BOOST_SPIRIT_INSTANTIATE does except for the attribute part to satisfy the linker. At least I think that what Seth is doing. That can be done by simply commenting out: https://github.com/cppljevans/linker_error_example/blob/master/types.cpp#L10 Of course whether that actually parses correctly is another question, but it at least links. -regards, Larry ------------------------------------------------------------------------------