jm130794
2014-02-01 12:27:19 UTC
Hello,
When I use wxJSON 1.2 with wxWidgets 3.0, I have this error when I run my
program :
./a.out
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
My program :
#include <iostream>
#include <wx/string.h>
#include <wx/wfstream.h>
#include <wx/mstream.h>
#include <wx/jsonval.h>
#include <wx/jsonreader.h>
#include <wx/jsonwriter.h>
using namespace std;
int main()
{
wxJSONValue root;
wxJSONReader reader;
wxFileInputStream inStream("values.json");
int numErrors = reader.Parse(inStream, &root);
if (numErrors > 0) {
cout << "Error" << endl;
return 1;
}
return 0;
}
and values.json :
/***************************
This is a C-style comment
***************************/
{
// this is a comment line in C++ style
"wxWidgets" :
{
"Description" : "Cross-platform GUI framework",
"License" : "wxWidgets",
"Version" :
{
"Major" : 2,
"Minor" : 8,
"Stable" : true
},
"Languages" :
[
"C++",
"Phyton",
"Perl",
"C#/Net"
]
}
}
Any ideas ?
Thanks,
Jean-Marc
When I use wxJSON 1.2 with wxWidgets 3.0, I have this error when I run my
program :
./a.out
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
/usr/local/include/wx-3.0/wx/strvararg.h(451): assert "(argtype &
(wxFormatStringSpecifier<T>::value)) == argtype" failed in
wxArgNormalizer(): format specifier doesn't match argument type
My program :
#include <iostream>
#include <wx/string.h>
#include <wx/wfstream.h>
#include <wx/mstream.h>
#include <wx/jsonval.h>
#include <wx/jsonreader.h>
#include <wx/jsonwriter.h>
using namespace std;
int main()
{
wxJSONValue root;
wxJSONReader reader;
wxFileInputStream inStream("values.json");
int numErrors = reader.Parse(inStream, &root);
if (numErrors > 0) {
cout << "Error" << endl;
return 1;
}
return 0;
}
and values.json :
/***************************
This is a C-style comment
***************************/
{
// this is a comment line in C++ style
"wxWidgets" :
{
"Description" : "Cross-platform GUI framework",
"License" : "wxWidgets",
"Version" :
{
"Major" : 2,
"Minor" : 8,
"Stable" : true
},
"Languages" :
[
"C++",
"Phyton",
"Perl",
"C#/Net"
]
}
}
Any ideas ?
Thanks,
Jean-Marc
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users