Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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

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