I just took a flex application that is going to be used by multiple products (its a flex based portal), and needed to move the core code into a swc, once I created my swc I kept getting this weird error :
Inconsistant linkage in D:\projects\clients\someClient\someProject\trunk\3rdPartyLibs\swc\playerglobal.swc(Object) - 'isNaN' is marked as extern, but '__AS3__.vec:Vector$int' is not.
I did a google and found a couple of references :
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg122106.html
so I went back to my application project to see if I had any special compiler settings, and remembered I had :
-target-player=10
I added that to the Additional Compiler Arguments in the Properties | Flex Library Compiler panel and its now works.
Hopefully this will save you some discovery.
I can't get this fix to work with compc and AIR. Whenever I create a library project, I get this error, but for regular projects it works just fine.
Posted by: JesterXL | July 24, 2009 at 11:44 AM
works good for me and saved me a lot of recherche. Thanks to you.
Posted by: Hans Wessel | September 25, 2009 at 01:57 AM
You're welcome
Posted by: Grant Davies | September 25, 2009 at 07:28 AM
Thanks for this. I found I got rid of the error adding -target-player=10 plus ticking the 'include Adobe AIR libraries' tickbox on the Flex Library Compiler panel.
Posted by: Kevin Wise | October 03, 2009 at 11:47 AM
thanks a lot !!!!
Posted by: teki | December 17, 2009 at 11:19 AM