Hello, we are currently trying to setup our VS 2010 for XBox 360.
In debug configuration we get this info:
1>AngelScript\add_on\scriptbuilder.cpp(680): warning C4996: '_getcwd': _getcwd() is not supported on Xbox.
1> d:\Program Files (x86)\Microsoft Xbox 360 SDK\include\xbox\direct.h(57) : see declaration of '_getcwd'
and in release configuration we get this info:
AngelScript\add_on\scriptbuilder.cpp(680): error C3861: '_getcwd': identifier not found
Are there any issues or differences in debug/release defines related to the _getcwd function?
ScriptBuilder + XBox360 + VS2010 _getcwd issue
_getcwd is a standard C++ function, apparently this is not supported on the XBox 360. I have no idea why the error message is different for debug mode and release mode. You'll probably need to ask Microsoft to get that answer . Anyway, this is coming from the function GetCurrentDir() in the scriptbuilder/scriptbuilder.cpp add-on. I'd appreciate it if you could let me know the changes that needs to be done to make the function work on the XBox 360.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
My solution to this problem is here: http://pastebin.com/Qv4z9tyK. Also I had to add include to "as_config.h" file because platform defines are not seen properly in scriptbuilder without it.
Could you check this and verify if this is a correct solution?
Could you check this and verify if this is a correct solution?
Thanks. I'll make this change in the SDK, though the as_config.h is not necessary and is only meant for internal use in the as core.
Instead
can be used.
Instead
#if _XBOX_VER >= 200
can be used.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement