Compile PgAdIII on OS X error
Compile PgAdIII on OS X error
От:
Patrick Hatcher <PHatcher@macys.com>
Дата:
Trying to compile pgAdmin III beta 3 OS X 10.3.5 and I'm getting the following error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include -I../src/agent/include -I/usr/local/pgsql/include -DSSL -I/usr/local/lib/wx/include/mac-ansi-release-2.5 -I/usr/local/include/wx-2.5 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/usr/local/include/wx-2.5 -no-cpp-precomp -fno-rtti -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include -I../src/agent/include -g -O2 -MT utffile.o -MD -MP -MF ".deps/utffile.Tpo" \
-c -o utffile.o `test -f 'utils/utffile.cpp' || echo './'`utils/utffile.cpp; \
then mv -f ".deps/utffile.Tpo" ".deps/utffile.Po"; \
else rm -f ".deps/utffile.Tpo"; exit 1; \
fi
utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, long
long int)':
utils/utffile.cpp:86: error: no matching function for call to `wxMBConv::MB2WC(
wxStringBuffer, char*&, long unsigned int)'
/usr/local/include/wx-2.5/wx/strconv.h:46: error: candidates are: virtual
size_t wxMBConv::MB2WC(wchar_t*, const char*, long unsigned int) const
make[2]: *** [utffile.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any clues on how to fix this?
TIA
-patrick
Patrick Hatcher
Macys.Com
Re: Compile PgAdIII on OS X error
От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
Patrick Hatcher wrote: > > utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, > long > long int)': > utils/utffile.cpp:86: error: no matching function for call to > `wxMBConv::MB2WC( > wxStringBuffer, char*&, long unsigned int)' > /usr/local/include/wx-2.5/wx/strconv.h:46: error: candidates are: virtual > size_t wxMBConv::MB2WC(wchar_t*, const char*, long unsigned int) const > make[2]: *** [utffile.o] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > > Any clues on how to fix this? Full casting is needed on some compilers (e.g. gcc3.4), since they aren't able to perform the required casts implicitely any more. I just commited a patch performing this. Regards, Andreas