building and linking a shared library

When using -l<libname> to specify library to link, the linker will first search for lib<libname>.so before searching for lib<libname>.a. In your case it doesn’t work, because the library filename is not with .so suffix. You may create simlink -> or -> -> You can also use (if your … Read more

boost spirit V2 qi bug associated with optimization level

It’s a bug in your code, nothing wrong with the compiler or the optimization levels. The cinch is with expression templates (like the ones used by Boost Proto, and hence by Boost Spirit). They are only valid to the end of their enclosing full expression [1] The canonical workaound is: BOOST_SPIRIT_AUTO(ana, *~qi::char_(‘*’) > +qi::char_(‘*’)); You … Read more