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.
Xcode and .so problem
-
spacebuddy
- Enthusiast

- Posts: 364
- Joined: Thu Jul 02, 2009 5:42 am
Re: Xcode and .so problem
I found the problem, have to use ProcedureCDLL and everything works
Just waiting for the next update for PB x64
Just waiting for the next update for PB x64