[chuck-users] Chuck + Snow Leopard??

Jim Menard jim.menard at gmail.com
Sun Sep 13 21:49:07 EDT 2009


A follow up: advice in another thread suggested I use "-arch i386". I
added that to CXX_LINK and FLAGS in makefile.osx, and it worked
perfectly.

Jim

On Fri, Sep 4, 2009 at 1:56 PM, Jim Menard <jim.menard at gmail.com> wrote:
> I'm having problems compiling ChucK on SnowLeopard. (I have my own
> fork at https://github.com/jimm/chuck/tree where I've added a few
> String methods and implemented some File I/O methods.)
>
> The error---which has nothing to do with my code---is this:
>
> gcc -D__MACOSX_CORE__ -c -O3 rtmidi.cpp
> rtmidi.cpp: In function 'int get_device_name(SInt32, char*, int)':
> rtmidi.cpp:295: error: cannot convert 'void**' to 'MIDIObjectRef*' for
> argument '2' to 'OSStatus MIDIObjectFindByUniqueID(MIDIUniqueID,
> MIDIObjectRef*, MIDIObjectType*)'
> ...snip...
> make[1]: *** [rtmidi.o] Error 1
> make: [osx] Error 2 (ignored)
>
> The offending line of code:
>
>    ret = MIDIObjectFindByUniqueID(uniqueid, &object, &type);
>
> It's saying that object, which is a void, can't be cast to
>
>
> There are a TON of other warnings for this and other files, mainly
> around the size of ints vs. longs and casting warnings. I may have
> some time to look into this and see if a few header tweaks will help
> or not.
>
> Jim
> --
> Jim Menard, jimm at io.com, jim.menard at gmail.com
> http://www.io.com/~jimm/
>



-- 
Jim Menard, jimm at io.com, jim.menard at gmail.com
http://www.io.com/~jimm/


More information about the chuck-users mailing list