rtv / Stage

Mobile robot simulator
rtv.github.com/Stage
GNU General Public License v2.0
391 stars 175 forks source link

Fix compile error due to the C++11 user-defined string literals feature #62

Closed kartikmohta closed 7 years ago

kartikmohta commented 8 years ago

Got errors of the form:

stage.hh: In member function ‘virtual void Stg::Ancestor::SetToken(const string&)’:                                                                                                                                                                                                       
stage.hh:625:62: error: unable to find string literal operator ‘operator""m’ with ‘const char [24]’, ‘long unsigned int’ arguments

With the new C++11 user-defined string literals feature, there has to be a space between string concatenations like the ones used here. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282.

AlexDaniel commented 7 years ago

May 17 ???

Yes, both this and https://github.com/rtv/Stage/issues/63 are required to make the goddamn thing compile.

Evidlo commented 6 years ago

Has this fix been integrated into Kinetic? I'm trying to build ROS from source on Fedora 25 with these instructions and getting this same error. (in addition to #63).

CBJamo commented 6 years ago

It has not been merged into kinetic, and does need to be, at least for Fedora.