Dont compile on Windows with vs2008


#1

Hi,

It dont compile with windows 7 and vs2008.

On debug it compile normal, but in release mode i get the error:

1>—— Rebuild All started: Project: libcocos2d, Configuration: Release Win32 ——
1>Deleting intermediate and output files for project ‘libcocos2d’, configuration ‘Release|Win32’
1>Compiling…
1>cocos2d.cpp
1>CCScheduler.cpp
1>CCDrawingPrimitives.cpp
1>CCDirector.cpp
1>CCConfiguration.cpp
1>CCamera.cpp
1>CCTouchHandler.cpp
1>CCTouchDispatcher.cpp
1>CCTMXXMLParser.cpp
1>CCTMXTiledMap.cpp
1>CCTMXObjectGroup.cpp
1>CCTMXLayer.cpp
1>CCTileMapAtlas.cpp
1>CCParallaxNode.cpp
1>CCTextureCache.cpp
1>CCTextureAtlas.cpp
1>CCTexture2D.cpp
1>CCPVRTexture.cpp
1>FileUtils.cpp
1>…_support\FileUtils.cpp(82) : error C3861: ‘assert’: identifier not found
1>glu.cpp
1>Generating Code…
1>Compiling…
1>TGAlib.cpp
1>TransformUtils.cpp
1>CGPointExtension.cpp
1>CCProfiling.cpp
1>base64.cpp
1>CCSpriteSheet.cpp
1>CCSpriteFrameCache.cpp
1>CCSpriteFrame.cpp
1>CCSprite.cpp
1>ZipUtils.cpp
1>NSLock.cpp
1>CCXUIImage_win32.cpp
1>CCXFileUtils_win32.cpp
1>CCXEGLView_win32.cpp
1>CCXCommon_win32.cpp
1>CCXBitmapDC.cpp
1>CCXApplication_win32.cpp
1>CCTime.cpp
1>CCQuadParticleSystem.cpp
1>CCPointParticleSystem.cpp
1>Generating Code…
1>Compiling…
1>CCParticleSystem.cpp
1>CCParticleExamples.cpp
1>CCRibbon.cpp
1>CCRenderTexture.cpp
1>CCProgressTimer.cpp
1>CCMotionStreak.cpp
1>CCMenuItem.cpp
1>CCMenu.cpp
1>CCTransition.cpp
1>CCScene.cpp
1>CCRadialTransition.cpp
1>CCPageTurnTransition.cpp
1>CCLayer.cpp
1>CCLabelAtlas.cpp
1>CCLabel.cpp
1>CCBitmapFontAtlas.cpp
1>CCTiledGridAction.cpp
1>CCProgressTimerActions.cpp
1>CCPageTurn3DAction.cpp
1>CCIntervalAction.cpp
1>Generating Code…
1>Compiling…
1>CCInstantAction.cpp
1>CCGridAction.cpp
1>CCGrid3DAction.cpp
1>CCEaseAction.cpp
1>CCCameraAction.cpp
1>CCActionManager.cpp
1>CCAction.cpp
1>CCGrid.cpp
1>CCGrabber.cpp
1>NSZone.cpp
1>NSSet.cpp
1>NSObject.cpp
1>NSData.cpp
1>NSAutoreleasePool.cpp
1>CGGeometry.cpp
1>CGAffineTransform.cpp
1>CCNode.cpp
1>CCAtlasNode.cpp
1>Generating Code…
1>Build log was saved at “file://d:_vs_2008\cocos2dx\cocos2dx\proj.win32\Release.win32\BuildLog.htm”
1>libcocos2d - 1 error(s), 0 warning(s)
Rebuild All: 0 succeeded, 1 failed, 0 skipped

Another thing, you need put:

#include “SimpleAudioEngine.h”

In file:

HelloWorldScene.h <- from template project for visual studio


#2

Thank you for tell us the bug, didn’t include the header “SimpleAudioEngine.h”, we’ll fix the bug as soon as possibale.

About the bug ‘assert’: identifier not found
I build cocos2d-x use release configuration on winxp, it goes well.

The cocos2d-x source code get from github.com/cocos2d/cocos2d-x at 2010-12-10.

Is there more infomation?
Which version cocos2d-x source code which encounter the bug are you compiled?