Menu

#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

    In case this is still an issue, it's fixed at: https://github.com/open-source-parsers/jsoncpp/

     
  • Christopher Dunn

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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.