Error C1083: can't open "extensions/ExtensionMacros.h"

environment: Win7 32 bit, VS2012, cocos2dx 3.0rc
vs error:
C1083: can’t open “extensions/ExtensionMacros.h”, no such file or directory.
IntelliSense: can’t open source “extensions/ExtensionMacros.h” CCScrollView.h 32

the error first appeared after I include “coco2d-ext.h”, then I added libExtensions to solution and add it as reference of my project, the error still there.

Also I checked headers path and library path.

Does anybody else meet the error?

Yes, I have the same problem, under Mac OS Xcode works fine, but fails on Windows VS2012/13

cocos2d\extensions\gui\ccscrollview\ccscrollview.h(32): fatal error C1083: Cannot open include file: ‘extensions/ExtensionMacros.h’: No such file or directory

I just met the same problem, and solved it in the following way:
Right click on your project in the property->configure property->C/C+±>general->additional include directory
add “$(EngineRoot);” into the “additional include directory”. Format just like the other directories.

4 Likes

If you are not able to resolve the issue. Repair Visual Studio. Its the only solution. Now i am using Cocos2d-x 3.12 and Visual Studio 2015 and its working without any error.