#59 StaticString compilation error

0.5.0
closed-fixed
nobody
None
5
2015-03-06
2013-03-22
Anonymous
No

Hi!

I use a gcc cross-compiler for powerpc (powerpc-e300c3-linux-gnu-g++), and I get an error trying to compile programs that use JsonCpp.

Somehow, I'm not sure why, the "str_" parameter is mistaken for a string constant, so I get this error:
json/value.h:66(12): error: expected identifier before string constant
json/value.h:66(12): error: expected '{' before string constant

After cursing a bit, I tried changing "str_" to something else, in this case "sdtr_", and then everything worked fine. So I suggest that you do the same, since I see no reason that the variable has to be called "str_". In fact, it's not a very good name.

Cheers!

Discussion

  • Christopher Dunn

    • status: open --> closed-fixed
    • Group: --> 0.5.0
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks