Unexpected getFormatedErrorMessages error

General discussion about the R.U.B.E editor
Post Reply
huginn18
Posts: 4
Joined: Thu Feb 19, 2015 6:37 pm

Unexpected getFormatedErrorMessages error

Post by huginn18 »

After fortnight of break project suddenly started returning this weirdo error..

Code: Select all

 Error	4	error C4996: 'Json::Reader::getFormatedErrorMessages': Use getFormattedErrorMessages instead	d:\!w\!l\devlib\include\box2d\b2json\b2djson.cpp	952	1
And again I cant imagine what I should do.
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Unexpected getFormatedErrorMessages error

Post by iforce2d »

Really? The message explains very clearly what you should do :D

From looking at the jsoncpp source code and docs, it seems they made a typo ('formated') in the first release, and then left it for backwards compatibility. They also made it to show this warning, if the compiler was MSVC 2008 or above:

Code: Select all

#if defined(_MSC_VER)  &&  _MSC_VER >= 1500 // MSVC 2008
/// Indicates that the following function is deprecated.
# define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
#endif
Could it be that you are using a different compiler than before?

If it helps, I've changed b2dJson.cpp in github to use the non-typo version.
huginn18
Posts: 4
Joined: Thu Feb 19, 2015 6:37 pm

Re: Unexpected getFormatedErrorMessages error

Post by huginn18 »

I didn't made any changes in project and I'm using ONLY VC13... so it's still secret to me what happened.
But anywayz thank you for that github thing.
Afterwards you are right this was obvious but sometimes life makes thinking hard. Sorry for your waste of time.
Post Reply