[ANN] wxJSON 1.1.0 released

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
luccat
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Oct 23, 2007 9:10 am
Location: Italy

[ANN] wxJSON 1.1.0 released

Postby luccat » Sat Nov 14, 2009 11:18 am

Hi all,
This release is a complete reorganization of the wxJSON reader and writer classes: now they only process UTF-8 encoded text as a stream.
I also added a new wxJSONValue's memberfunction to get values and fixed the bugs in wxJSONValue::IsSameAs().

There is also a trick for compiling on MinGW (see the INSTALL.TXT file)

For details about the new version read:

http://luccat.users.sourceforge.net/wxj ... tsnew.html

Regards
Luciano

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Re: [ANN] wxJSON 1.1.0 released

Postby samsam598 » Fri Dec 11, 2009 8:21 am

luccat wrote:There is also a trick for compiling on MinGW (see the INSTALL.TXT file)

Regards
Luciano


Great!
May I ask where is the makefile.gcc for mingw under build folder?I don't find makefile.vc /makefile.bcc as mentioned int the install.txt.

Thanks for your help in advance.
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.

luccat
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Oct 23, 2007 9:10 am
Location: Italy

Re: [ANN] wxJSON 1.1.0 released

Postby luccat » Fri Dec 11, 2009 8:59 am

samsam598 wrote:Great!
May I ask where is the makefile.gcc for mingw under build folder?I don't find makefile.vc /makefile.bcc as mentioned int the install.txt.

Thanks for your help in advance.


makefile.vc is specific for MS VC++ and makefile.bcc is specific for Borland BCC 5.5.
In fact, they are missing in this release. Sorry, I forgot to generate them.

AFAIK mingw is a unix-like system so for building wxJSON you would have to use the normal build procedure for unix/linux:

./configure
make
make install

Maybe, the building problems on mingw did not depend on the platform itself but on the use of STL.
I am working on this issue. If you have problems building on mingw let me know.

Regards
Luciano

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Re: [ANN] wxJSON 1.1.0 released

Postby samsam598 » Sat Dec 12, 2009 4:13 am

luccat wrote:
AFAIK mingw is a unix-like system so for building wxJSON you would have to use the normal build procedure for unix/linux:

./configure
make
make install

Maybe, the building problems on mingw did not depend on the platform itself but on the use of STL.
I am working on this issue. If you have problems building on mingw let me know.

Regards
Luciano


Thanks a lot.Noted from the install.txt that it is also fine to include the source in one's project.This is quite easy.I will use this method at present

For mingw issue,forgot to let u know I am using Windows.:P

Regards,
Sam
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Postby samsam598 » Wed Dec 16, 2009 1:38 am

wx version:daily snapshot Dec 14.

I tried to compile the sample within wxJson package,including all headers and src,using mingw3.4.5+C::B under Windows XP,both in release/debug mode,got an ICE:

D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\main.cpp||In function `void PrintErrors(wxJSONReader&)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\main.cpp|673|warning: comparison between signed and unsigned integer expressions|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\main.cpp|681|warning: comparison between signed and unsigned integer expressions|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test1.cpp||In function `int Test1_6()':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test1.cpp|385|warning: comparison between signed and unsigned integer expressions|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp||In function `int Test13_2()':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `unsigned int'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `short unsigned int'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `long unsigned int'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `wxUint64'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `unsigned int'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `short unsigned int'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|518|warning: converting of negative value `-0x000000001' to `long unsigned int'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|1146|warning: integer constant is so large that it is unsigned|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp||In function `int Test13_7()':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|1146|warning: this decimal constant is unsigned only in ISO C90|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|1176|warning: integer constant is so large that it is unsigned|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|1176|warning: this decimal constant is unsigned only in ISO C90|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|38|warning: 'int TestX_X()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test10.cpp|808|warning: 'int Test60()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test12.cpp|38|warning: 'int TestX_X()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test13.cpp|38|warning: 'int TestX_X()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test14.cpp|38|warning: 'int TestX_X()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test5.cpp||In function `int Test7_6()':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test5.cpp|280|warning: unused variable 'numWarn'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test5.cpp||In function `int Test8_5()':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test5.cpp|571|warning: unused variable 'numErrors'|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test8.cpp|38|warning: 'int TestX_X()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\samples\test9.cpp|37|warning: 'int TestX_X()' defined but not used|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|340|warning: non-inline function 'int wxJSONReader::Parse(wxInputStream&, wxJSONValue*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|340|warning: 'int wxJSONReader::Parse(wxInputStream&, wxJSONValue*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|405|warning: non-inline function 'int wxJSONReader::GetStart(wxInputStream&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|405|warning: 'int wxJSONReader::GetStart(wxInputStream&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|490|warning: non-inline function 'int wxJSONReader::ReadChar(wxInputStream&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|490|warning: 'int wxJSONReader::ReadChar(wxInputStream&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|536|warning: non-inline function 'int wxJSONReader::PeekChar(wxInputStream&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|536|warning: 'int wxJSONReader::PeekChar(wxInputStream&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|572|warning: non-inline function 'int wxJSONReader::DoRead(wxInputStream&, wxJSONValue&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|572|warning: 'int wxJSONReader::DoRead(wxInputStream&, wxJSONValue&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|767|warning: non-inline function 'void wxJSONReader::StoreValue(int, const wxString&, wxJSONValue&, wxJSONValue&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|767|warning: 'void wxJSONReader::StoreValue(int, const wxString&, wxJSONValue&, wxJSONValue&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|852|warning: non-inline function 'void wxJSONReader::AddError(const wxString&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|852|warning: 'void wxJSONReader::AddError(const wxString&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|870|warning: non-inline function 'void wxJSONReader::AddError(const wxString&, const wxString&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|870|warning: 'void wxJSONReader::AddError(const wxString&, const wxString&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|910|warning: non-inline function 'void wxJSONReader::AddWarning(int, const wxString&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|910|warning: 'void wxJSONReader::AddWarning(int, const wxString&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|944|warning: non-inline function 'int wxJSONReader::SkipWhiteSpace(wxInputStream&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|944|warning: 'int wxJSONReader::SkipWhiteSpace(wxInputStream&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|973|warning: non-inline function 'int wxJSONReader::SkipComment(wxInputStream&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|973|warning: 'int wxJSONReader::SkipComment(wxInputStream&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1120|warning: non-inline function 'int wxJSONReader::ReadString(wxInputStream&, wxJSONValue&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1120|warning: 'int wxJSONReader::ReadString(wxInputStream&, wxJSONValue&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1339|warning: non-inline function 'int wxJSONReader::ReadValue(wxInputStream&, int, wxJSONValue&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1339|warning: 'int wxJSONReader::ReadValue(wxInputStream&, int, wxJSONValue&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1513|warning: non-inline function 'int wxJSONReader::ReadUES(wxInputStream&, char*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1513|warning: 'int wxJSONReader::ReadUES(wxInputStream&, char*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1557|warning: non-inline function 'int wxJSONReader::AppendUES(wxMemoryBuffer&, const char*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1557|warning: 'int wxJSONReader::AppendUES(wxMemoryBuffer&, const char*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1611|warning: non-inline function 'void wxJSONReader::StoreComment(const wxJSONValue*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1611|warning: 'void wxJSONReader::StoreComment(const wxJSONValue*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1743|warning: non-inline function 'static int wxJSONReader::UTF8NumBytes(char)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1743|warning: 'static int wxJSONReader::UTF8NumBytes(char)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1858|warning: non-inline function 'static bool wxJSONReader::Strtoll(const wxString&, wxInt64*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1858|warning: 'static bool wxJSONReader::Strtoll(const wxString&, wxInt64*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1894|warning: non-inline function 'static bool wxJSONReader::Strtoull(const wxString&, wxUint64*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1894|warning: 'static bool wxJSONReader::Strtoull(const wxString&, wxUint64*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1916|warning: non-inline function 'static bool wxJSONReader::DoStrto_ll(const wxString&, wxUint64*, wxChar*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1916|warning: 'static bool wxJSONReader::DoStrto_ll(const wxString&, wxUint64*, wxChar*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|253|warning: non-inline function 'virtual wxJSONReader::~wxJSONReader()' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `const wxArrayString& wxJSONReader::GetErrors() const':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|433|warning: non-inline function 'const wxArrayString& wxJSONReader::GetErrors() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `const wxArrayString& wxJSONReader::GetWarnings() const':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|440|warning: non-inline function 'const wxArrayString& wxJSONReader::GetWarnings() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::GetDepth() const':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|452|warning: non-inline function 'int wxJSONReader::GetDepth() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::GetErrorCount() const':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|461|warning: non-inline function 'int wxJSONReader::GetErrorCount() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::GetWarningCount() const':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|468|warning: non-inline function 'int wxJSONReader::GetWarningCount() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::NumBytes(char)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1715|warning: non-inline function 'int wxJSONReader::NumBytes(char)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In constructor `wxJSONReader::wxJSONReader(int, int)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|238|warning: non-inline function 'wxJSONReader::wxJSONReader(int, int)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::ConvertCharByChar(wxString&, const wxMemoryBuffer&)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1782|warning: non-inline function 'int wxJSONReader::ConvertCharByChar(wxString&, const wxMemoryBuffer&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::ReadToken(wxInputStream&, int, wxString&)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|1278|warning: non-inline function 'int wxJSONReader::ReadToken(wxInputStream&, int, wxString&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `void wxJSONReader::AddError(const wxString&, wxChar)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|879|warning: non-inline function 'void wxJSONReader::AddError(const wxString&, wxChar)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp||In member function `int wxJSONReader::Parse(const wxString&, wxJSONValue*)':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonreader.cpp|304|warning: non-inline function 'int wxJSONReader::Parse(const wxString&, wxJSONValue*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|189|warning: non-inline function 'wxJSONRefData* wxJSONValue::Init(wxJSONType)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|189|warning: 'wxJSONRefData* wxJSONValue::Init(wxJSONType)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|1325|warning: non-inline function 'int wxJSONValue::Size() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|1325|warning: 'int wxJSONValue::Size() const' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|1860|warning: non-inline function 'wxJSONValue& wxJSONValue::operator=(const wxJSONValue&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|1860|warning: 'wxJSONValue& wxJSONValue::operator=(const wxJSONValue&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|1981|warning: non-inline function 'static wxString wxJSONValue::TypeToString(wxJSONType)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|1981|warning: 'static wxString wxJSONValue::TypeToString(wxJSONType)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2109|warning: non-inline function 'wxString wxJSONValue::GetInfo() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2109|warning: 'wxString wxJSONValue::GetInfo() const' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2592|warning: non-inline function 'wxJSONRefData* wxJSONValue::SetType(wxJSONType)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2592|warning: 'wxJSONRefData* wxJSONValue::SetType(wxJSONType)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2688|warning: non-inline function 'void wxJSONValue::SetRefData(wxJSONRefData*)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2688|warning: 'void wxJSONValue::SetRefData(wxJSONRefData*)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2695|warning: non-inline function 'void wxJSONValue::Ref(const wxJSONValue&)' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2695|warning: 'void wxJSONValue::Ref(const wxJSONValue&)' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2718|warning: non-inline function 'void wxJSONValue::UnRef()' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2718|warning: 'void wxJSONValue::UnRef()' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2753|warning: non-inline function 'wxJSONRefData* wxJSONValue::GetRefData() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2753|warning: 'wxJSONRefData* wxJSONValue::GetRefData() const' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2770|warning: non-inline function 'virtual wxJSONRefData* wxJSONValue::CloneRefData(const wxJSONRefData*) const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2829|warning: non-inline function 'wxJSONRefData* wxJSONValue::COW()' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2829|warning: 'wxJSONRefData* wxJSONValue::COW()' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2843|warning: non-inline function 'void wxJSONValue::AllocExclusive()' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2843|warning: 'void wxJSONValue::AllocExclusive()' defined locally after being referenced with dllimport linkage|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|2812|warning: non-inline function 'virtual wxJSONRefData* wxJSONValue::CreateRefData() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|84|warning: non-inline function 'virtual wxJSONRefData::~wxJSONRefData()' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp||In member function `int wxJSONRefData::GetRefCount() const':|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|90|warning: non-inline function 'int wxJSONRefData::GetRefCount() const' is defined after prior declaration as dllimport: attribute ignored|
D:\Laguage\cplusplus\wxWidgets\wxJSON-1.1.1-r1135\wxjson\src\jsonval.cpp|374|internal compiler error: in rest_of_handle_final, at toplev.c:2067|||=== Build finished: 1 errors, 103 warnings ===|

Any idea?

Thanks.
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.

luccat
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Oct 23, 2007 9:10 am
Location: Italy

Postby luccat » Wed Dec 16, 2009 10:49 am

samsam598 wrote:wx version:daily snapshot Dec 14.

I tried to compile the sample within wxJson package,including all headers and src,using mingw3.4.5+C::B under Windows XP,both in release/debug mode,got an ICE:

=== Build finished: 1 errors, 103 warnings ===|
Any idea?
Thanks.


Well, in the 'sample' subfolder there is a test application that I use for testing the library.
The application should not be buit and used by the wxJSON users; it is by now only usefull for the author.

Some warnings when building the test app are OK; I have explicitly written some code so that the compiler _should_ warn me.
Some others, like the ones that refer to the 'dllimport' stuff, are new to me: I will check for a solution.
Maybe the problem is that all classes are declared as:

class WXDLLIMPEXP_JSON

and the same attribute should be used also when _defining_ all member functions. Could it be?
I compiled wxJSON on windows using Borland BCC 5.5 and never got such warnings. However, I always used a static build, never compiled wxJSON as a DLL on win32.

BTW, I am installing Code::Blocks on both my systems because I will use it to make some code cleanup so I will use it and mingw in a not too far future.
When done I will fix all these issues

Regards
Luciano

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Postby samsam598 » Wed Dec 23, 2009 1:19 am

luccat wrote:When done I will fix all these issues

Regards
Luciano


Got it,thank you!
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 2 guests