FLTK logo

Re: Mac OS 10.6 & gcc 4.4.2

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Mac OS 10.6 & gcc 4.4.2 Matthias Melcher Nov 30, 2009  
 
On 30.11.2009, at 02:05, Ben Abbott wrote:

> NTRANT -I/usr/X11R6/include -I/sw/include -c Fl.cxx
> In file included from Fl.cxx:1214:
> Fl_mac.cxx:115:26: warning: multi-character character constant
> Fl_mac.cxx:1073:26: warning: multi-character character constant
> Fl_mac.cxx:1314:40: warning: multi-character character constant
> Fl_mac.cxx:1637:45: warning: multi-character character constant
> Fl_mac.cxx:1640:44: warning: multi-character character constant
> Fl_mac.cxx:1643:45: warning: multi-character character constant
> Fl_mac.cxx:1662:45: warning: multi-character character constant
> Fl_mac.cxx:1665:44: warning: multi-character character constant
> Fl_mac.cxx:1666:40: warning: multi-character character constant
> Fl_mac.cxx:1670:45: warning: multi-character character constant
> Fl_mac.cxx:1674:40: warning: multi-character character constant
> Fl_mac.cxx:1677:42: warning: multi-character character constant
> Fl_mac.cxx:1677:66: warning: multi-character character constant

All the above are harmless.

> 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.H:37,
>                 from ../FL/x.H:41,
>                 from Fl.cxx:35:
> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147: error: format string argument not a string type

This one is of course not harmless, but since the error is in an Apple supplied header file, and I don't have the gcc version at hand, I will not be able to fix the issue quickly. It seems that the FL/mac.H header file overrides something that CF later needs. 

Please try to add this line:
#include <Carbon/Carbon.h>

as the first line in FL.cxx and let me know if the error goes away.

> Fl.cxx: In static member function 'static int Fl::handle(int, Fl_Window*)':
> Fl.cxx:715: warning: suggest parentheses around '&&' within '||'
> In file included from Fl.cxx:1214:

Harmless

> Fl_mac.cxx: In function 'void fl_open_display()':
> Fl_mac.cxx:1349: warning: the address of 'OSStatus TransformProcessType(const ProcessSerialNumber*, ProcessApplicationTransformState)' will never be NULL

Haha. Well, on earlier versions of OS X, TransformProcessType actually *is* NULL. ;-) . Anyway, harmless.

Matthias
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.