使用helloworld项目,构建web和安卓的都正常,但是windows的编译就是报错,vs使用的是2015,C++相关插件都下载了,vs也重复安装了,弄了好久,这个问题还是存在,求助
编译模式:release
正在编译…
要求的 VS 版本:[2013, 2015, 2017]
正在执行:’“C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com” “E:\cocos_workspace\start_project\build\jsb-binary\frameworks\runtime-src\proj.win32\game.sln” /Build “Release” /Project “game”’
Microsoft Visual Studio 2015 14.0.23107.0 版。
版权所有 © Microsoft Corp。保留所有权利。
Visual Studio 的许可证 28 天后到期。
1>------ 已启动生成: 项目: game, 配置: Release Win32 ------
1> AppDelegate.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xlocale(341): warning C4530: 使用了 C++ 异常处理程序,但未启用展开语义。请指定 /EHsc
1>e:\cocoscreator\resources\cocos2d-x\external\win32\include\spidermonkey\js/Utility.h(263): warning C4996: ‘strdup’: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
1> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\string.h(552): note: 参见“strdup”的声明
1>e:\cocoscreator\resources\cocos2d-x\external\win32\include\spidermonkey\js/Value.h(949): error C2134: “JS::Value::fromRawBits”: 调用不会生成常数表达式
1> e:\cocoscreator\resources\cocos2d-x\external\win32\include\spidermonkey\js/Value.h(949): note: 对未定义的函数或为未声明为“constexpr”的函数的调用导致了故障
1> e:\cocoscreator\resources\cocos2d-x\external\win32\include\spidermonkey\js/Value.h(953): note: 参见“JS::Value::fromRawBits”的声明
1>…\Classes\AppDelegate.cpp(70): warning C4305: “参数”: 从“double”到“float”截断
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
执行命令出错,返回值:1。