In order to get pgadmin to compile I had to make the following changes.
Add "#include <wx/dataobj.h>" to the following files: src/ui/frmQuery.cpp src/ui/frmEditGrid.cpp
Change the call to nbOptions->deletePage(0) to nbOptions->deletePage((size_t)0), so that it was not ambigous:
src/ui/dlgEditGridOptions.cpp:165
But now I have run into a problem I am not sure how to fix. It looks like an autoboxing problem, but I could be wrong. I didn't have a lot of time to look into it.
The error is as follows:
<code>
make all-recursive
make[1]: Entering directory `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0'
Making all in src
make[2]: Entering directory `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0/src'
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/motif-ansi-release-2.5 -I/usr/local/include/wx-2.5 -D__WXMOTIF__ -I/usr/openwin/include -I/usr/dt/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA -I/usr/local/include/wx-2.5 -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include -I../src/agent/include -g -O2 -MT sysSettings.o -MD -MP -MF ".deps/sysSettings.Tpo" \
-c -o sysSettings.o `test -f 'utils/sysSettings.cpp' || echo './'`utils/sysSettings.cpp; \
then mv -f ".deps/sysSettings.Tpo" ".deps/sysSettings.Po"; \
else rm -f ".deps/sysSettings.Tpo"; exit 1; \
fi
utils/sysSettings.cpp: In constructor `sysSettings::sysSettings(const wxString&)':
utils/sysSettings.cpp:113: error: no matching function for call to `wxFont::wxFont(wxString&)'
/usr/local/include/wx-2.5/wx/motif/font.h:42: note: candidates are: wxFont::wxFont(const wxNativeFontInfo&)
/usr/local/include/wx-2.5/wx/motif/font.h:36: note: wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)
/usr/local/include/wx-2.5/wx/motif/font.h:27: note: wxFont::wxFont(const wxFont&)
/usr/local/include/wx-2.5/wx/motif/font.h:26: note: wxFont::wxFont()
utils/sysSettings.cpp:126: error: no matching function for call to `wxFont::wxFont(wxString&)'
/usr/local/include/wx-2.5/wx/motif/font.h:42: note: candidates are: wxFont::wxFont(const wxNativeFontInfo&)
/usr/local/include/wx-2.5/wx/motif/font.h:36: note: wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)
/usr/local/include/wx-2.5/wx/motif/font.h:27: note: wxFont::wxFont(const wxFont&)
/usr/local/include/wx-2.5/wx/motif/font.h:26: note: wxFont::wxFont()
make[2]: *** [sysSettings.o] Error 1
make[2]: Leaving directory `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/z1/SUN_PACKAGES/tarballs/postgres/pgadmin3-1.2.0'
make: *** [all] Error 2
</code>
From what I can see, it looks like line 113 of sysSettings.cpp is explicitly calling wxFont()'s constructor (I am not sure if this is proper C++). The constructor it is calling takings a wxString as an argument. But There is not constructor in wxFont class or wxBaseFont class that takes a wxString that I can see.
Let me know what change i need to make to get this baby compiled. Environment: Solaris 8, SPARC, gcc 3.4.1, wx 2.5.3.
Thanks.
~Shea M.
______
This e-mail message (including any attachments) is intended for the individual to whom it is addressed and contains information that is privileged and confidential. If you are not the intended recipient, note that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. For complete disclaimer information, please see http://arcis.com/emaildisclaimer
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org