Re: pgadmin3 beta3 build failure at wxMBConv::MB2WC() - Mailing list pgadmin-support

From Andreas Pflug
Subject Re: pgadmin3 beta3 build failure at wxMBConv::MB2WC()
Date
Msg-id 41766BF2.4060307@pse-consulting.de
Whole thread Raw
In response to pgadmin3 beta3 build failure at wxMBConv::MB2WC()  (steve fox <steve@wiscota.net>)
List pgadmin-support
steve fox wrote:
> Hi,
> 
> I'm running gentoo linux, 2.6.8 kernel, i686-pc-linux-gnu-3.4.2.  I've 
> installed wxWindows per the instructions on
> 
> http://www.pgadmin.org/pgadmin3/download.php ,
> 
> and I get this error while running the 'make' command of the pgadmin3 
> build.  I get the same error with older beta versions as well; 
> re-installing wxWidgets doesn't help:
> 
> utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, 
> off_t)':
> utils/utffile.cpp:86: error: no matching function for call to 
> `wxMBConv::MB2WC(wxStringBuffer, char*&, unsigned int)'
> /usr/local/include/wx-2.5/wx/strconv.h:46: note: candidates are: virtual 
> size_t wxMBConv::MB2WC(wchar_t*, const char*, size_t) const

Try casting to help the compiler guessing that the only available method 
is the on meant: MB2WC((wxChar*)...

I'd consider this a gcc3.4 bug: wxStringBuffer has a wxChar*() operator, 
resolving the first argument (this should happen automatically), buffer 
is a char* which should be usable as const char* perfectly legal, and 
unsigned int used as size_t param doesn't look too exotic too.

Not the first weird thing from gcc 3.4...

Regards,
Andreas


pgadmin-support by date:

Previous
From: steve fox
Date:
Subject: pgadmin3 beta3 build failure at wxMBConv::MB2WC()
Next
From: Andreas Pflug
Date:
Subject: Re: Bug: PGAdmin + plpythonu + windows