Why do I get this warning whenever I compile an alchemy swc?
WARNING: While resolving call to function 'main' arguments were dropped!
Is there any way to disable or fix the warning?
While I don't know what the warning is referring to, I've never found it to be a problem. Compiling a command-line tool via Alchemy will accept arguments to main.
Unfortunately there doesn't appear to be a way to pass arguments to main via AS3/CLibInit. I don't think this has anything to do with the warning-- the args just don't appear to be exposed to AS3.
As a workaround I've been using environment variables (via putEnv) to pass in parameters for main to read.