Question: Calling external C code on Max OS X (XCode)

Has anyone ever written procedures in C that can be called from Maple on MAC OS X? I have looked at the WRAPPER help page and given it a go but I am completely lost. I have compiled the example C code from the WRAPPER page with XCode as a "shared library" but when I try to define it in maple I get the following error: > newton := define_external('newton', 'f'::(PROC('x'::(float[8]), 'RETURN'::(float[8]))), 'fprime'::(PROC('x'::(float[8]), 'RETURN'::(float[8]))), 'guess'::(float[8]), 'tolerance'::(float[8]), 'RETURN'::(float[8]), 'WRAPPER', LIB = "/Users/david2/Documents/maple_test/build/Debug/libmaple_test.dylib"); Error, could not create wrapper source file, mwrap_newton.c Does anyone know how to fix this?
Please Wait...