Home > Parse Error > Has_binary_operator.hp:50: Parse Error At "boost_join"

Has_binary_operator.hp:50: Parse Error At "boost_join"


This turned out to be caused by Qt's moc > choking on a Boost header: > > /boost/type_traits/detail/has_binary_operator.hp:50: > Parse error at "BOOST_JOIN" > > I have seen this with Qt I believe that it might affect quite a large number of people/projects. catkin_make install to /opt/groovy|hydro ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license. It is strange that that typo was unnoticed until then. –lrineau Jan 20 '15 at 11:35 add a comment| Did you find this question interesting?

A Qt bug has being filled at and is said to be fixed in Qt-5.0. I would like to >> reproduce the bug before I apply you patch. >> >> - What version of Boost was involved? Format For Printing -XML -Clone This Bug -Top of page First Last Prev Next This bug is not in your last search results. Join them; it only takes a minute: Sign up Qt4 + CGAL - Parse error at “BOOST_JOIN” up vote 12 down vote favorite 4 I'm getting the error Parse error at

Has_binary_operator.hp:50: Parse Error At "boost_join"

I guess I didn't clean up properly the first time I reverted to boost 1.47. >> - And what version of mingw? >> - You talk about cross-compiling? It seems to be a known problem as reported here: stonier/qt_ros#8 #399 already fixed after 0.5.13 (2014-02-06), but I still have the same problem, some workarounds proposed: don't work for It seems reasonable to avoid this problem by letting moc skip these headers, which is what "#ifndef Q_MOC_RUN" does in the patch below. But I don't suppose the datum is important in any way to the MOC parser, so in the patch, I just make the whole block invisible to MOC.