I was having trouble recently executing SSE intrinsics on Leopard. The problem, simply put, is that OSX lacks a memalign() function. As a result I was getting messages of the form: Undefined symbols: "_memalign", referenced from: _init in ccB0Dp2Z.o _init in ccB0Dp2Z.o _init in ccB0Dp2Z.o _main in ccB0Dp2Z.o _main in ccB0Dp2Z.o _main in ccB0Dp2Z.o ld: symbol(s) not found collect2: ld returned 1 exit status

However, I have found a partial solution. Including the following c source file above all your other headers will allow your program to allocate memory properly. Note however, that memory will NOT be freed correctly (or at all possibly). As such, do not use this except for experimentation.

memalign.c

Credit for the above belongs to Jeff Clites.