Cycling74 / max-sdk

Software Development Kit for Max by Cycling '74
Other
255 stars 54 forks source link

_clock_gettime defined in SDK MaxAPI but not in official Max/MSP MaxAPIImpl #40

Open jcelerier opened 4 years ago

jcelerier commented 4 years ago

I'd wager that the reason is that the API version is built against the 10.11 sdk, but the official version (I checked 8.1) is built against 10.13 sdk, and this symbol appeared in 10.12.

Problem is that an external which calls clock_gettime will resolve to the one which used to be provided by MaxAPI and then won't be able to find it when running in Max.

tap commented 4 years ago

Unfortunately, clock_gettime() is defined both by Max and by others. In C this is definitely a problem as everything is in a global namespace.

I suggest checking out the Max-DevKit or Min-Devkit as alternatives to the the Max-SDK as they properly namespace functions like this.

Cheers