My extension doesn't build on OSX

#1

I have an extension which builds when I launch (or bundle) the project on Windows machine and doesn’t build when I’m trying to do so on Mac. It fails to build with an error:

Line 5: ‘malloc.h’ file not found
#include <malloc.h>

What can I do to fix it?

1 Like

#2

I believe malloc() is available via stdlib.h on macOS.

1 Like

#3

I thought extensions are being build on the external server

0 Likes

#4

Yes, they are?

0 Likes

#5

Each platform you build for requires a separate SDK (which is installed on the build server).
Many of the common C functions reside in different files in different SDKs.

0 Likes