So I wanted to try something and pavanky from the arrayfire team posted a solution for me here:
Now, he is probably quite busy, but I’m getting this error based on line 20:
extern shared char *s_mem;
T *s_res = (T *)s_mem;
However, I read online and could not find/identify a good reason why I would get such error. Most of the time you get it when you don’t have ‘extern’ keyword.