From: | John Battles <capgadget(at)yahoo(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | pgadmin3-0.9.1 wxwindows build woes utils/misc.cpp:389: error: no matching function for call to `wxMBConv::MB2WC |
Date: | 2003-08-30 01:40:09 |
Message-ID: | 20030830014009.59199.qmail@web21309.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers 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(const wchar_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
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Pflug | 2003-08-30 09:07:29 | Re: [HACKERS] pgadmin3-0.9.1 wxwindows build woes utils/misc.cpp:389: |
Previous Message | Hiroshi Saito | 2003-08-30 01:00:25 | dlgTrigger_patch |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-08-30 02:44:04 | Re: Hardware recommendations to scale to silly load |
Previous Message | Tom Lane | 2003-08-29 20:54:51 | Re: FE/BE Protocol - Specific version |