4 messages in com.mysql.lists.gui-toolsRe: Administrator 1.0.9 compile problems| From | Sent On | Attachments |
|---|---|---|
| Shane Corgatelli | 17 Aug 2004 10:56 | |
| Alfredo Kengi Kojima | 18 Aug 2004 16:17 | |
| Shane Corgatelli | 19 Aug 2004 08:17 | |
| Alfredo Kengi Kojima | 20 Aug 2004 21:26 |
| Subject: | Re: Administrator 1.0.9 compile problems![]() |
|---|---|
| From: | Alfredo Kengi Kojima (alfr...@mysql.com) |
| Date: | 08/18/2004 04:17:30 PM |
| List: | com.mysql.lists.gui-tools |
Hello Shane,
On Tue, 17 Aug 2004, Shane Corgatelli wrote:
I'm having multiple problems trying to compile administrator 1.0.9 with gcc-2.95.3. The problems are described below. Is administrator going to support the 2.95 compilers or should I just wait until I can get around to upgrading my compiler?
Hopefully we can get these things fixed.
----------- System Info ------------ Distribution: Gentoo Compiler: gcc-2.95.3 glibc: 2.2.5
----------------------------------------
The first problem is when trying to compile mysql-gui-common I receive the following error:
In file included from myg_gtkutils.cc:28: myg_utils.h:62: badly punctuated parameter list in `#define'
The line that gives the error is:
#define myg_log(msg, ...) g_printerr("%s: "msg"\n", g_get_prgname(), __VA_ARGS__)
I was able to get this working by changing the line to the old GCC variadic syntax:
#define myg_log(msg, args...) g_printerr("%s: "msg"\n", g_get_prgname(), args)
I've added an #ifdef using the old style syntax, in case gcc 2.x is detected.
Now, I'm getting these errors:
MGTableBrowserList.cc: In method `bool MGTableBrowserList::CustomTreeStore::row_draggable_vfunc(const Gtk::TreePath &)': MGBrowserList.h:60: `class Glib::RefPtr<Gtk::TreeStore> MGBrowserList::_store' is protected MGTableBrowserList.cc:288: within this context MGTableBrowserList.cc: In method `bool MGTableBrowserList::CustomTreeStore::drag_data_get_vfunc(const Gtk::TreePath &, _GtkSelectionData *)': MGBrowserList.h:60: `class Glib::RefPtr<Gtk::TreeStore> MGBrowserList::_store' is protected MGTableBrowserList.cc:298: within this context
That one is strange, it seems to be a bug in the older gcc. Try moving the line that says friend class CustomTreeStore; in the MGTableBrowserList.h header to after the nested declaration of class CustomTreeStore.
Tell me if you find any more problems so I can update things so it compiles cleanly in the next release.
Regards,
-- Alfredo Kojima, GUI Developer MySQL AB, www.mysql.com Buenos Aires, Argentina
Are you MySQL certified? www.mysql.com/certification
-- MySQL GUI Tools Mailing List For list archives: http://lists.mysql.com/gui-tools To unsubscribe: http://lists.mysql.com/gui-tools?unsub=alfr...@mysql.com




