ActionScript 3, Alchemy

Error when compiling Alchemy on Mac

Just a quick tip that solved this error
“alchemy-darwin-v0.5a/avm2-libc/include/c++/3.4/new:82: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter”
when trying to compile c++ code to a swc using Adobe Alchemy on my mac.

Just add -DOSX at the end of your command line and it’ll compile…at least it did for me.
I didn’t find any official documentation on this, just found this post on adobe forums suggesting the way above.