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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s