Page 1 of 1

Xcode and .so problem

Posted: Sat Nov 02, 2013 5:42 pm
by spacebuddy
I am working on a library (.so) that I need to call from Xcode. I created an Xcode project and added the code
to call the library. Here is sample code I am calling from PB

ProcedureDLL Test(Parm1.s)
MessageRequester("Test", "Working", 0);
EndProcedure

Xcode gives me an error
libdyld.dylib`misaligned_stack_error_:
0x909bd540: movdqa %xmm0, 16(%esp)
0x909bd546: movdqa %xmm1, 32(%esp)
0x909bd54c: movdqa %xmm2, 48(%esp)
0x909bd552: movdqa %xmm3, 64(%esp)

If I remove Parm1.s then it works without any problems. I get the popup dialog. Xcode does not like the parameters, I tried strings and numbers.

Re: Xcode and .so problem

Posted: Mon Nov 04, 2013 5:03 pm
by spacebuddy
I found the problem, have to use ProcedureCDLL and everything works

Just waiting for the next update for PB x64 :D