>
> On 30.11.2009, at 15:51, Ben Abbott wrote:
> >>> =3D
> >> =
> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147=
> =3D
> >> : error: format string argument not a string type
> >>=20
> >> This one is of course not harmless, but since the error is in an =
> Apple =3D
> >> supplied header file, and I don't have the gcc version at hand, I =
> will =3D
> >> not be able to fix the issue quickly. It seems that the FL/mac.H =
> header =3D
> >> file overrides something that CF later needs.=3D20
> >>=20
> >> Please try to add this line:
> >> #include <Carbon/Carbon.h>
> >>=20
> >> as the first line in FL.cxx and let me know if the error goes away.
> >=20
> > Unfortunately, the error remains.
>
> Hmm. I see nothing suspicious about this line at least in relation to =
> FLTK. Please take Fl_mac.cxx and remove the entire contents, except the =
> "include" line and see if Fl_mac.cxx compiles. If it does, we will have =
> to deduce step by step which (include) statement makes our compile =
> impossible. If it does not compile, you will have to find the required =
> compiler flag or the offending line.
>
> Matthias=
>

I'm not sure which include line should be left in "Fl_mac.cxx".

I tried to compile with "#include <Carbon/Carbon.h>" being the only line in 
Fl_mac.cxx, but encountered the same error.

In case you intended for me to try to compile Fl_mac.cxx, I tried a "make 
Fl_mac.o" as well (which containts one line "#include <Carbon/Carbon.h>").

$ make Fl_mac.o
echo Compiling Fl_mac.cxx...
Compiling Fl_mac.cxx...
g++-4 -I..     -Os -Wno-deprecated-declarations -Wall -Wunused -Wno-format-y2k  
-fPIC -fno-exceptions -fno-strict-aliasing  -D_THREAD_SAFE -D_REENTRANT 
-I/usr/X11R6/include -I/sw/include -c Fl_mac.cxx
In file included from 
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43,
                 from 
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
                 from 
/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from 
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from 
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from Fl_mac.cxx:1:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147: 
error: format string argument not a string type

Ben

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to