[solved] CCAssert doesn't work on eclipse?

I use cocos2d-x version 2.0.1. When I add CCAssert in cpp on eclipse, it says ‘CCMessageBox was not declared in this scope’. The same code works well on XCode. Any idea?

You should include ccMacros.h.
CCAssert is defined in this heard file.

Minggo Zhang wrote:

You should include ccMacros.h.
CCAssert is defined in this heard file.

Thanks, Minggo. I figure out that I should “USING_NS_CC;” for the CCAssert on Android.