On 6 Dec 2009, at 22:23, Matthias Melcher wrote:
> OK, so I merged the zip archive into the current SVN tree. Please  
> guys,
> check if this all went right! I still have to do a bunch of tests,  
> but the
> basic code seems to work very well! (to the point where I sometimes  
> wonder
> if I set the flags right and I am not still using Carbon ;-)

Not so good: This is on PPC 10.4.11, 32-bit, at the command line,  
after doing and "svn up" then "make clean ; ./configure ; make" I get  
errors as below.

Is there some configure option I have missed?

Looking at config.h I see that

#define USE_QUARTZ 1
#define __APPLE_QUARTZ__ 1
#define __APPLE_COCOA__ 1

is set, so I assume this is a cocoa build?

=== making src ===
Compiling Fl.cxx...
Fl_cocoa.mm:177: error: 'NSUInteger' was not declared in this scope
Fl_cocoa.mm:178: error: expected ',' or ';' before '{' token
Fl_cocoa.mm: In function 'void cocoaMouseHandler(NSEvent*)':
Fl_cocoa.mm:762: error: 'NSInteger' was not declared in this scope
Fl_cocoa.mm:762: error: expected `;' before 'btn'
Fl_cocoa.mm:764: error: 'NSUInteger' was not declared in this scope
Fl_cocoa.mm:764: error: expected `;' before 'mods'
Fl_cocoa.mm:776: error: 'btn' was not declared in this scope
Fl_cocoa.mm:796: error: 'btn' was not declared in this scope
Fl_cocoa.mm:813: error: 'mods' was not declared in this scope
Fl_cocoa.mm:813: error: 'mods_to_e_state' cannot be used as a function
Fl_cocoa.mm:767: warning: enumeration value 'NSMouseEntered' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSMouseExited' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSKeyDown' not handled  
in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSKeyUp' not handled in  
switch
Fl_cocoa.mm:767: warning: enumeration value 'NSFlagsChanged' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSAppKitDefined' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSSystemDefined' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSApplicationDefined'  
not handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSPeriodic' not handled  
in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSCursorUpdate' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSScrollWheel' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSTabletPoint' not  
handled in switch
Fl_cocoa.mm:767: warning: enumeration value 'NSTabletProximity' not  
handled in switch
Fl_cocoa.mm: In function 'OSStatus cocoaKeyboardHandler(NSEvent*)':
Fl_cocoa.mm:1045: error: 'NSUInteger' was not declared in this scope
Fl_cocoa.mm:1045: error: expected `;' before 'mods'
Fl_cocoa.mm:1052: error: 'mods' was not declared in this scope
Fl_cocoa.mm:1137: error: 'mods_to_e_state' cannot be used as a function
Fl_cocoa.mm:1127: warning: enumeration value 'NSLeftMouseDown' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSLeftMouseUp' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSRightMouseDown' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSRightMouseUp' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSMouseMoved' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSLeftMouseDragged' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSRightMouseDragged'  
not handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSMouseEntered' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSMouseExited' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSFlagsChanged' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSAppKitDefined' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSSystemDefined' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSApplicationDefined'  
not handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSPeriodic' not handled  
in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSCursorUpdate' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSScrollWheel' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSTabletPoint' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSTabletProximity' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSOtherMouseDown' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSOtherMouseUp' not  
handled in switch
Fl_cocoa.mm:1127: warning: enumeration value 'NSOtherMouseDragged'  
not handled in switch
Fl_cocoa.mm: In static member function 'static void Fl_X::make 
(Fl_Window*)':
Fl_cocoa.mm:1874: error: 'NSInteger' was not declared in this scope
Fl_cocoa.mm:1874: error: expected `;' before 'winlevel'
Fl_cocoa.mm:1875: error: 'NSUInteger' was not declared in this scope
Fl_cocoa.mm:1875: error: expected `;' before 'winstyle'
Fl_cocoa.mm:1876: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1877: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1884: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1891: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1901: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1902: error: 'winlevel' was not declared in this scope
Fl_cocoa.mm:1904: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1907: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1911: error: 'winlevel' was not declared in this scope
Fl_cocoa.mm:1963: error: 'winstyle' was not declared in this scope
Fl_cocoa.mm:1968: error: 'winlevel' was not declared in this scope
Fl_cocoa.mm: In function 'flCocoaRegion* MacRegionMinusRect 
(flCocoaRegion*, int, int, int, int)':
Fl_cocoa.mm:2571: error: 'CGFloat' does not name a type
Fl_cocoa.mm:2572: error: 'verylarge' was not declared in this scope
Fl_cocoa.mm: In function 'void* MACMenuOrItemOperation(const  
char*, ...)':
Fl_cocoa.mm:2883: error: 'NSUInteger' was not declared in this scope
Fl_cocoa.mm:2883: error: expected `;' before 'macMod'
Fl_cocoa.mm:2884: error: 'macMod' was not declared in this scope
Fl_cocoa.mm:2885: error: 'macMod' was not declared in this scope
Fl_cocoa.mm:2886: error: 'macMod' was not declared in this scope
Fl_cocoa.mm:2887: error: 'macMod' was not declared in this scope
Fl_cocoa.mm:2888: error: 'macMod' was not declared in this scope
Fl_cocoa.mm: In function 'unsigned char* MACbitmapFromRectOfWindow 
(Fl_Window*, int, int, int, int, int*)':
Fl_cocoa.mm:3056: error: 'CGFloat' was not declared in this scope
Fl_cocoa.mm:3056: error: expected `;' before 'epsilon'
Fl_cocoa.mm:3057: error: 'epsilon' was not declared in this scope
Fl_cocoa.mm:3061: error: 'epsilon' was not declared in this scope
make[1]: *** [Fl.o] Error 1
make: *** [all] Error 1
immpc4:/Volumes/Disk2/CVS_images/fltk-1.3 ian$

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

Reply via email to