Hello, At 15:56 +0200 on 2014-4-18 Martin Costabel wrote: > > This is the same type of error as for ddd-3.3.12-3. > > On 18/04/14 02:07, Stefan Bruda wrote: > > On the following system: > > > > Package manager version: 0.36.4.1 > > Distribution version: selfupdate-rsync Thu Apr 17 18:38:07 2014, 10.9, > > x86_64 > > Trees: local/main stable/main > > Xcode.app: 5.1.1 > > Xcode command-line tools: 5.1.0.0.1.1396320587 > > Max. Fink build jobs: 1 > > > > building fltk fails as follows: > > > > Compiling Fl_Function_Type.cxx... > > g++ -I.. -Os -Wno-deprecated-declarations -Wall -Wunused > > -Wno-format-y2k -fPIC -fno-exceptions -fno-strict-aliasing > > -D_THREAD_SAFE -D_REENTRANT -I/sw/include/freetype2 -I/sw/include > > -U__APPLE__ -MD -DHAVE_SCANDIR -I/sw/include -I/sw/include/freetype2 > > -I/sw/include -I/usr/X11R6/include -c Fl_Function_Type.cxx > > In file included from Fl_Function_Type.cxx:31: > > ./Fl_Type.h:47:21: error: friend declaration specifying a default argument > > must be a definition > > friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0); > [etc] > > This is caused by a change in the C++11 standard that is enforced by the > clang compiler in xcode-5.1. The code needs to be fixed by removing the > default argument from the friend declaration and perhaps moving it to > the definition of the function if necessary.
You mean, like this? --- fltk-1.1.10/fluid/Fl_Type.h 2008-01-04 16:45:49.000000000 -0500 +++ fltk-1.1.10.fink/fluid/Fl_Type.h 2014-04-18 10:17:52.000000000 -0400 @@ -41,10 +41,12 @@ void set_modflag(int mf); + Fl_Widget *make_type_browser(int,int,int,int,const char *l=0); + class Fl_Type { friend class Widget_Browser; - friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0); + friend Fl_Widget *make_type_browser(int,int,int,int,const char *l); friend class Fl_Window_Type; virtual void setlabel(const char *); // virtual part of label(char*) You are perfectly right, fltk-x11 now builds and as far as I can ascertain works well (I only have one application that uses it). Interestingly enough I don't see any place in which make_type_browser() is used, and the whole thing appears to work even without the respective declaration... In any event, things work for me now. Many thanks! I will also look into ddd when I get the time (but it is not going to happen very soon)... Best regards, Stefan -- If it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic. --Lewis Carroll, Through the Looking-Glass No HTML emails and proprietary attachments please <http://bruda.ca/ascii> ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users