Why is that linker flag added to the templates?
I had to remove it, otherwise I was getting linker errors (duplicate symbols) when adding the Agon Online framwork...
I'm using the cocos2d + Box2D template.
rolando
A fast, easy to use, free, and community supported 2D game engine
Why is that linker flag added to the templates?
I had to remove it, otherwise I was getting linker errors (duplicate symbols) when adding the Agon Online framwork...
I'm using the cocos2d + Box2D template.
rolando
Hi Rolando,
I don't use the templates, but I had to add it to my project as well. It is a requirement of the recently added FontLabel library. That library uses categories in a way that requires it. Will link to the discussion.
As far as I know it's added because of ttf label support. But there are many other libraries that asks for that flag also, so it's not solution to remove the flag, but to remove duplicate symbols.
Some more info (in the first few posts): http://www.cocos2d-iphone.org/forum/topic/2195#post-14182
Riq clarified for me -- cocos2d doesn't extend any existing classes the way that FontLabel does (this is related to the technical links in the other thread about why the flag is needed), but FontLabel does so wrt NSString. That's why this issue came up.
- Jason
it turned out that it was a bug in the latest release of Agon that came up to the light by using the -all_load flag. Since I'm not using ttf label support, I'll leave it off until the guys from Agon Online release a new version.
rolando.
You must log in to post.