PPC Compile error (error: 'objc_msgSend_fpret' wa)


Dont know if i do something wrong, but i cant build for PPC anymore since i updated to the latest tip (Target 10.5, Base SDK 10.6, GCC 4.2).

void redirectMouseWheel (NSEvent* ev) { .......... if ([ev respondsToSelector: @selector (deviceDeltaX)]) { const float scale = 0.5f / 256.0f; wheel.deltaX = scale * (float) objc_msgSend_fpret (ev, @selector (deviceDeltaX)); // --> compiler error wheel.deltaY = scale * (float) objc_msgSend_fpret (ev, @selector (deviceDeltaY)); } } @catch (...) {} ........

Compiler output:

In file included from /Users/patrickkunz/Develop/tal/tal-u-no-lxx/Builds/MacOSX/../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp:266, from /Users/patrickkunz/Develop/tal/tal-u-no-lxx/Builds/MacOSX/../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.mm:26: /Users/patrickkunz/Develop/tal/tal-u-no-lxx/Builds/MacOSX/../../JuceLibraryCode/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm: In member function 'void juce::NSViewComponentPeer::redirectMouseWheel(NSEvent*)': /Users/patrickkunz/Develop/tal/tal-u-no-lxx/Builds/MacOSX/../../JuceLibraryCode/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm:552: error: 'objc_msgSend_fpret' was not declared in this scope

Any help is welcome


Ok, thanks, I’ve checked in a fix for that now.


Thats fast. Thanks a lot.

edit: it worked :slight_smile:



With latest tips (15 June : Introjucer: removed old OSX 10.4 target option.), I have a small new PPC build issues.

  1. juce_mac_NSViewComponentPeer.mm --> Invalid conversion from ‘objc_object*’ to ‘BOOL’ (line 1534)
  2. juce_mac_MessageManager.mm --> id delegate is private (line 94)
    THis is with gcc 4.0

A couple of #if JUCE_PPC allowed me to build (with the use of (bool) for case #1).
Though not sure if this won’t bring issue when on ppc either.



Ok, thanks. I’ll probably just rip those out, as I’m getting rid of a lot of that old 10.4 support.