pgadmin3-0.9.1 wxwindows build woes utils/misc.cpp:389: error: no matching function for call to `wxMBConv::MB2WC

Поиск
Список
Период
Сортировка
От John Battles
Тема pgadmin3-0.9.1 wxwindows build woes utils/misc.cpp:389: error: no matching function for call to `wxMBConv::MB2WC
Дата
Msg-id 20030830014009.59199.qmail@web21309.mail.yahoo.com
обсуждение исходный текст
Список pgsql-hackers
I did  manage to get past the stc and src parts

after building wcGTK-2.4.1
cd wxGTK-2.4.1/contrib/stc;make;checkinstall
cd wxGTK-2.4.1/contrib/xrc;make;checkinstall

but got hung up on the make for pgadmin3-0.9.1 here

====================== CUT of make.log ===============
if g++ -DHAVE_CONFIG_H -I. -I. -I..  
-I/usr/kerberos/include -DSSL -I/usr/include
-I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS
-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/include -DDATA_DIR=\"/usr/share/pgadmin3/\"
-Wall -g -I../src/include -I -pipe -O2 -march=pentium3
-msse -mfpmath=sse -fprefetch-loop-arrays
-fomit-frame-pointer -frename-registers -MT misc.o -MD
-MP -MF ".deps/misc.Tpo" \ -c -o misc.o `test -f 'utils/misc.cpp' || echo
'./'`utils/misc.cpp; \
then mv ".deps/misc.Tpo" ".deps/misc.Po"; \
else rm -f ".deps/misc.Tpo"; exit 1; \
fi
utils/misc.cpp: In function `wxString NumToStr(long
unsigned int)':
utils/misc.cpp:136: warning: unsigned int format, long
int arg (arg 3)
utils/misc.cpp: In function `wxString FileRead(const
wxString&, wxWindow*, int)  ':
utils/misc.cpp:387: error: no matching function for
call to `wxMBConvUTF8::  MB2WC(wxChar*, char*&, size_t&)'
/usr/include/wx/strconv.h:84: error: candidates are:
virtual size_t   wxMBConvUTF8::MB2WC(wchar_t*, const char*, unsigned
int) const
utils/misc.cpp:389: error: no matching function for
call to `wxMBConv::MB2WC(  wxChar*, char*&, size_t&)'
/usr/include/wx/strconv.h:39: error: candidates are:
virtual size_t   wxMBConv::MB2WC(wchar_t*, const char*, unsigned
int) const
make[2]: *** [misc.o] Error 1
make[2]: Leaving directory
`/builddir/pgadmin3-0.9.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/pgadmin3-0.9.1'
make: *** [all] Error 2

=================== END Cut ========================

I went back into wxGTK and did a configure with
--enable-unicode  but still no help.

Looking at /usr/include/wx/strconv.h I see the
reference to wxMBConvUTF8::MB2WC as

#if wxUSE_WCHAR_T

//
----------------------------------------------------------------------------
// wxMBConv (base class for conversions, using libc
conversion itself)
//
----------------------------------------------------------------------------

class WXDLLEXPORT wxMBConv
{
public:   // the actual conversion takes place here   virtual size_t MB2WC(wchar_t *buf, const char
*psz, size_t n) const;   virtual size_t WC2MB(char *buf, const wchar_t
*psz, size_t n) const;
   // No longer inline since BC++ complains.   const wxWCharBuffer cMB2WC(const char *psz) const;   const wxCharBuffer
cWC2MB(constwchar_t *psz)
 
const;

#if wxUSE_UNICODE   const wxWCharBuffer cMB2WX(const char *psz) const
{ return cMB2WC(psz); }   const wxCharBuffer cWX2MB(const wchar_t *psz)
const { return cWC2MB(psz); }   const wchar_t* cWC2WX(const wchar_t *psz) const {
return psz; }   const wchar_t* cWX2WC(const wchar_t *psz) const {
return psz; }
#else // ANSI   const char* cMB2WX(const char *psz) const { return
psz; }   const char* cWX2MB(const char *psz) const { return
psz; }   const wxCharBuffer cWC2WX(const wchar_t *psz)
const { return cWC2MB(psz); }   const wxWCharBuffer cWX2WC(const char *psz) const
{ return cMB2WC(psz); }
#endif // Unicode/ANSI
   // virtual dtor for any base class   virtual ~wxMBConv();
};


Trying a kludge for -DwxUSE_WCHAT_T didn't seem to
work either.

Any ideas?
 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FE/BE Protocol - Specific version
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Beta2 Tag'd and Bundled ...