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. In fact, default arguments 
in friend declarations do not make much sense, so this kind of error 
really points to a bug in the code.

-- 
Martin



------------------------------------------------------------------------------
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

Reply via email to