Page 1 of 1

calling accelerate framework

Posted: Tue Oct 26, 2021 11:36 pm
by mrbungle
I came across this bit of code from the forum and got a compile error (says its not found) when running on Big Sur (it worked in Catalina):

Code: Select all

ImportC "/System/Library/Frameworks/Accelerate.framework/Accelerate"
  vImageUnpremultiplyData_RGBA8888 (*src, *dest, flags)
EndImport
Is there a different way of calling it on Big Sur?

Thank you.

Re: calling accelerate framework

Posted: Wed Oct 27, 2021 2:12 am
by mrbungle
Never mind. I tried:

Code: Select all

ImportC "-framework Accelerate"
And it worked correctly.